{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

14-440-127 Recitation 9 Presentation

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

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

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

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

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

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

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern