MATLAB Project - Elbow

Project tasks

3. Explain

Explain some commands used in the M-File simulate.m in Q2.

(a) Explain precisely what the two arrays in the thirteenth line of simulate.m, marked with a (*), represent. What does the command in that line produce?

(b) Does the command for t = 0:0.02:4 produce an array? Explain why or why not.

(c) Why is the command clf included? What would happen if it was omitted?