matlab关于hold on 的画图clear all;t=0:pi/20:2*pi;x=sin(t);y=cos(t);figureplot(t,x,':r');hould on plot(t,y,'*b');legend('sin(t)','cos(t)');请问大侠怎么只能画出一条曲线?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 05:35:15
matlab关于hold on 的画图clear all;t=0:pi/20:2*pi;x=sin(t);y=cos(t);figureplot(t,x,':r');hould on plot(t,y,'*b');legend('sin(t)','cos(t)');请问大侠怎么只能画出一条曲线?

matlab关于hold on 的画图clear all;t=0:pi/20:2*pi;x=sin(t);y=cos(t);figureplot(t,x,':r');hould on plot(t,y,'*b');legend('sin(t)','cos(t)');请问大侠怎么只能画出一条曲线?
matlab关于hold on 的画图
clear all;
t=0:pi/20:2*pi;
x=sin(t);
y=cos(t);
figure
plot(t,x,':r');
hould on
plot(t,y,'*b');
legend('sin(t)','cos(t)');
请问大侠怎么只能画出一条曲线?

matlab关于hold on 的画图clear all;t=0:pi/20:2*pi;x=sin(t);y=cos(t);figureplot(t,x,':r');hould on plot(t,y,'*b');legend('sin(t)','cos(t)');请问大侠怎么只能画出一条曲线?
这样画不出曲线
倒数第三行,hould on
打错了
应该是hold on 才对
这样才能画出一条曲线