Frequent testing has been proven to be effective in learning. I found this source of Matlab programming tips and help online and find it very useful. Please take this quiz as many times as you like. It is very good practice. 12/12 means you understand Matlab's for loops very well.
-Deb
http://numericalmethods.eng.usf.edu/EML3041/studymate/MATLABforendloops.htm
http://numericalmethods.eng.usf.edu/EML3041/studymate/MATLABifelseend.htm
The YouTube video lectures are available at http://numericalmethods.eng.usf.edu/videos and http://www.youtube.com/numericalmethodsguy