{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ENGR132_Class5A_Knutson

# ENGR132_Class5A_Knutson - Welcome to ENGR132 Transforming...

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

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

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

View Full Document
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
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

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

View Full Document
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
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

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

View Full Document
4/24/11 Examples For every sensor, record the voltage.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}