谁有matlab,帮我画两个图t=0:0.1:10; y=sin(tan(t))-tan(sin(t)); subplot(2,2,1); polar(t, y); subplot(2,2,2); bar(t, y); subplot(2,2,3); stem(t, y); subplot(2,2,4); stairs(t, y); 还有clearx=0:0.1:5*pi;f=sin(x);g=cos(x);plot(x,f,'r*',x,g,'b')
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 02:26:36
$>-Ў@eYVJp䐱p5%X!rD+Ee&8 49,EQqEE&7֧:;7wOgFzFp$kE G`DXľx0e*RX3` bR WqJiA Q %D3Ç,_+lr{`~k]|xd{>cߟ%|N"jKI3Dae 3
谁有matlab,帮我画两个图t=0:0.1:10; y=sin(tan(t))-tan(sin(t)); subplot(2,2,1); polar(t, y); subplot(2,2,2); bar(t, y); subplot(2,2,3); stem(t, y); subplot(2,2,4); stairs(t, y); 还有clearx=0:0.1:5*pi;f=sin(x);g=cos(x);plot(x,f,'r*',x,g,'b')
谁有matlab,帮我画两个图
t=0:0.1:10;
y=sin(tan(t))-tan(sin(t));
subplot(2,2,1); polar(t, y);
subplot(2,2,2); bar(t, y);
subplot(2,2,3); stem(t, y);
subplot(2,2,4); stairs(t, y);
还有
clear
x=0:0.1:5*pi;
f=sin(x);
g=cos(x);
plot(x,f,'r*',x,g,'b');
axis([0.5*pi,-1.5,1.5]);
xlabel('t(deg)');
ylabel('magnitude');
TEXT(pi/2,1.2,'这是我的程序运行结果!'
title('sine wave from zero to 5/pi');
谁有matlab,帮我画两个图t=0:0.1:10; y=sin(tan(t))-tan(sin(t)); subplot(2,2,1); polar(t, y); subplot(2,2,2); bar(t, y); subplot(2,2,3); stem(t, y); subplot(2,2,4); stairs(t, y); 还有clearx=0:0.1:5*pi;f=sin(x);g=cos(x);plot(x,f,'r*',x,g,'b')
上面的图: 后面的几个标度 函数有错误,前几句运行结果: