14-440-127 Recitation 9 Presentation

14-440-127 Recitation 9 Presentation - 14:440:127...

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

View Full Document Right Arrow Icon
14:440:127 Introduction to Computers for Engineers Recitation 9 Lecturer: Blase E. Ur Recitation Instructor: Tianming Li Recitation Instructor: Ke Xu Recitation Instructor: Brian Viezbicke Recitation Instructor: Mingliang Wang
Background image of page 1

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

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Recitation 9 Review for Exam 2 Lecture 6 (Loops): for loops , while loops and Nested Loop Lecture 7 (Functions): User-defined Functions, Anonymous Functions, Variable Scope Lecture 8 : Switch Case/Menus, Special Arrays (Cell, Sparse, Struct), Binary, Animation, Random Numbers, image functions
Background image of page 2
Rutgers University SOE 14:440:127 Recitation 9 For Loop for VARIABLE = VECTOR STATEMENTS end While Loop while(CONDITION) % replace capitalized parts STATEMENTS % replace capitalized parts end for i = 1 : 100 disp(i) end sum = 0; n=1; while(sum<100) sum = sum+n; n=n+1; end
Background image of page 3

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

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Recitation 9 Nested Loop: loops (for or while) inside of each other for VARIABLE1 = VECTOR1 % loop 1 for VARIABLE2 = VECTOR2 % loop 2 for … … % more loops STATEMENTS end… … % more loops end % for loop-2 end % for loop-1
Background image of page 4
Rutgers University SOE 14:440:127 Recitation 9 Functions • Built-in function: [out_1, out_2,…, out_m]=function_name(var1, var2,…., Var_n); var_1, var_2, …., var_n : input variables, arguments, formal parameters. Could have 0 argument.
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/29/2012 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

Page1 / 14

14-440-127 Recitation 9 Presentation - 14:440:127...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online