{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ENGR132_Class5A_Knutson

ENGR132_Class5A_Knutson - Welcome to ENGR132 Transforming...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style ENGR132 Transforming Ideas to Innovation II Section 006 & 021 Prof. Amanda Knutson and GTA Ben Ahn Class 5a Welcome to
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4/24/11 Announcements HW 5 and HW 6 and Project Milestone 4 due in 6B Section 006 -Tuesday Feb 22nd Section 021 – Friday Feb 18th 22
Background image of page 2
4/24/11 By the end of topic, you will be able to Define the structure and function of definite and indefinite loops Create a for…end loop flowchart from a problem description Write MATLAB for…end code from a flowchart Interpret flowcharts and MATLAB code with for…end structures Learning Objectives: Repetition Structures / Definite 33
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4/24/11 A Loop is a structure used for repeating calculations or commands a number of times. Each time the repetition is performed it is considered a pass. A counter (or test variable) is used to keep track of the number of passes. Loops 44
Background image of page 4
4/24/11 MATLAB uses two types of loops while…end loop : used when the number of passes is dictated by the satisfaction of a specified condition; therefore the number of passes is not known in advance (indefinite loops) for…end loop : used when the number of passes is known ahead of time (definite loops) Loops and MATLAB 55
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4/24/11 Examples For every sensor, record the voltage.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}