Professional Documents
Culture Documents
Lesson 6 Pageo
Lesson 6 Pageo
Help Center
Loops
Loops give computers their power. We will learn how to use the for-loop and the while-loop. We will learn
how the break-statement works, and we will use nested loops. We will learn how to make loops more
efficient. We will learn about logical indexing and see how to use it to produce implicit loops that are
efficient and easy to read.
Video Lectures
6.1
6.2
6.3
6.4
6.5
For-Loops (38:50)
While-Loops (20:16)
Break Statement (29:31)
Logical Indexing (37:29)
Preallocation (8:59)
Assignments
Lesson 6 Programming Assignments (10 problems) Deadline: June 1, 2015  (11:59 pm in Hawaii)
Additional Material
Lesson 6 Slides
Examples used in the lectures
Video Lectures in HD on YouTube
6.1 For-Loops (38:50)
6.2 While-Loops (20:16)
6.3 Break Statement (29:31)
6.4 Logical Indexing (37:29)
6.5 Preallocation (8:59)