Files
matlab-learning/plotxy15.m
2025-10-20 10:11:16 +08:00

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}');