1.2.2. Week 2 - 8/31¶
Agenda for this week:
Sections 2.6 and 2.8 cover concept that are mostly common to all programming languages, but pay attention to the syntax, which is slightly different in each language. Function handles in section 2.8 is a MATLAB specific topic. I use function handles in several example programs through out the course. Section 2.7 is important because vectors and matrices are a big part of this course. Section 2.9 presents something that is somewhat unique to MATLAB. MATLAB is a vectorized programming language, which only a few other languages can claim. Knowing how to write vectorized code and make use of logical vectors will allow you to write a few lines of MATLAB code that will accomplish what would take many lines of code in other environments.
There are several lectures videos this week, but they are all short.
Reading:
Video Lectures
Annotated notes:
Notes on loops –
notes/Loops.pdf
Assignments:
Video: Fourier For Loop assignment
Video: Save Your Money assignment
Progress Checks: 2.7, 2.8, 2.9
Video: Progress Check 2.7
Video: Progress Check 2.8
Video: Progress Check 2.9