Ugh, I loathe Matlab.
Anyhow, why don't you use the M-file editor to type in all of your code... then copy and paste it into the actual window to see if it works? Then you can always copy the source code from your m-file editor once you know it works, and submit that.
As for comments, I believe you use the % sign.
|