Assignment 1 directions
- Download the assignment script here: Assignment1.m.
- Fill in the blanks in the Assignment1.m
- Silence the output (put ; in the end) of all lines whose output doesn't fit on a line or two(e.g. x=[0:0.001:1] - this would clutter your screen pretty fast).
- Conversely, don't silence lines whose output is reasonably small (e.g. sum(y.*dx) would produce a single number, and that I'd want to see).
- Once you are done, run the script ONCE with small values of N in parts 1 and 3 (N=5 for part 1, N=50 for part 3). Copy the output from the command window and save it to text file.
- This will produce serveral figure windows (they might pop up in the background). Save the figures to .PNG files (Click File -> Save As... in the figure window, select Portable Network File (*.PNG) as the file type).
- There are questions that require you to change the value of N or dx in the file. Do so, re-run the scripts, and record your answers as comments (lines starting with %) in the .m file.
- Some questions are open-ended (e.g. "Why does this happen?"). Type your answers as comments in the .m file.
- Send me the .m file, the output, and the figure files in an email.
- Also, print those out and bring to class on Tuesday, September 22nd.
- Have fun with the assignment :)