Professional Documents
Culture Documents
.
Begin a new m-file by selecting File/New/M-File.
t t t t x
7 sin
7
4
5 sin
5
4
3 sin
3
4
sin
4
Use = 2 rad/s and plot your results from t = 0 to 5 seconds in steps of 0.001 seconds.
You can define your time vector using the following statement.
t = 0:0.001:5;
Also, can be defined in MATLAB