MATLAB ASSIGNMENT
Question No 1: Write a Matlab Code that plots an equation from 0 to with an
increment of 0.05. Also show plot with figure caption.
Question No 2: Write following code in Matlab using M-file, write comments for each line
and plot the result with figure caption.
clear all
x=0:0.01:3*pi;
subplot (2,2,1);
plot(x, sin(x));
subplot (2,2,2);
plot(x, cos(x));
subplot (2,2,3)
plot (x, exp (-x));
subplot (2,2,4);
plot (x, x.^2);
Question No 3: Plot following equations on Matlab and use question 2 for subplots. Also
write comments for each line, Label axis and plot. Use Range for both equations are
(1)
(2)