In: Computer Science
d. Include a legend
e. Set the x limits from 0 to 4??
answer for e.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc
clear all
close all
format long
x=0:0.1:4*pi;
y1=sin(x);
y2=cos(x);
plot(x,y1,'--r',x,y2,'-.b');
legend('Sine','Cosine');
xlabel('X-axis');
ylabel('Y-values');
xlim([0,4*pi]);
Kindly revert for any queries
Thanks.