8 lines
200 B
Matlab
8 lines
200 B
Matlab
x=0:0.1:2*pi;
|
|
y1=sin(x);
|
|
y2=exp(-x);
|
|
plot(x,y1,'--*',x,y2,':o');
|
|
xlabel('t = 0 to 2\pi');
|
|
ylabel('values of sin(t) and e^{-x}');
|
|
title('Function Plots of sin(t) and e^{x}');
|
|
legend('sin(t)','e^{-x}'); |