Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Save and run the program again, this time using the Run Image Removed icon in the Editoricon   Image Added  from the Editor tab. Check the result in the Command window.
Add comments to your program to lay out, in a human language, what it does. Comments are prefixed with a %; See below. Image AddedImage Removed
Any line beginning with a % will be skipped over by MATLAB; these are for human eyes only. You should libreally add comments to your program to remind yourself what it does. Otherwise, a few months (or days!) down the line, you'll look at it, wonder what all the fuss is about and curse the ^&^*%%&* author.
I hear you saying "this is a piece of cake, gimme more!". So let's move on to Step 2.

...