You are on page 1of 1

11/25/16 2:06 PM MATLAB Command Window 1 of 1

>> x = 0:pi/30:2*pi;
y =sin(x);
y1 =cos(x);
plot(x,y,'r'); hold on
plot(x,y1,'g');
legend('xaxis','yaxis');
>>

You might also like