In this screencast we begin a look at looping structures in MATLAB with the basic use of the FOR loop. A FOR loop to perform a simple task (squaring the elements of a vector one at a time) is developed and coded.
man you saved my life....i can not get any help or clarification with these repeat structures, my book does a horrible job, and my professor is just as bad. Thank you so much for breaking it down, now i know when and how i can use this.
Great video. I need to store in a vector generated in the n values is. For example: for i = 1: 0.1: 2 x = 2 * i end X only stores the last value obtained in the repeat loop. I need everyone ... If not mess up, like I do?