{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

14-440-127 Recitation 9 Presentation

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

Info icon This 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
Image of page 1

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

View Full Document Right 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
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
Image of page 3

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

View Full Document Right 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
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.
Image of page 5

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern