早教吧作业答案频道 -->其他-->
看看这个matlab程序错在哪了t=0:0.01:3;k=2;a=-1.5;b=10;f=k*exp((a+i*b)*t);subplot(2,2,1);plot(f,real(f));title('实部');axis([0,3,-2,2]);grid on;subplot(2,2,2);plot(f,imag(f));title('虚部');axis([0,3,-2,2]);grid on;subplot(2,2,3);plot(f,ab
题目详情
看看这个matlab程序错在哪了
t=0:0.01:3;
k=2;a=-1.5;b=10;
f=k*exp((a+i*b)*t);
subplot(2,2,1);plot(f,real(f));title('实部');axis([0,3,-2,2]);grid on;
subplot(2,2,2);plot(f,imag(f));title('虚部');axis([0,3,-2,2]);grid on;
subplot(2,2,3);plot(f,abs(f));title('模');axis([0,3,-2,2]);grid on;
subplot(2,2,4);plot(f,angle(f));title('相位角');axis([0,3,-4,4]);grid on;
错误提示Warning:Imaginary parts of complex X and/or Y arguments ignored
t=0:0.01:3;
k=2;a=-1.5;b=10;
f=k*exp((a+i*b)*t);
subplot(2,2,1);plot(f,real(f));title('实部');axis([0,3,-2,2]);grid on;
subplot(2,2,2);plot(f,imag(f));title('虚部');axis([0,3,-2,2]);grid on;
subplot(2,2,3);plot(f,abs(f));title('模');axis([0,3,-2,2]);grid on;
subplot(2,2,4);plot(f,angle(f));title('相位角');axis([0,3,-4,4]);grid on;
错误提示Warning:Imaginary parts of complex X and/or Y arguments ignored
▼优质解答
答案和解析
横坐标是t 吧
t=0:0.01:3;
k=2;a=-1.5;b=10;
f=k*exp((a+i*b)*t);
subplot(2,2,1);plot(t,real(f));title('实部');axis([0,3,-2,2]);grid on;
subplot(2,2,2);plot(t,imag(f));title('虚部');axis([0,3,-2,2]);grid on;
subplot(2,2,3);plot(t,abs(f));title('模');axis([0,3,-2,2]);grid on;
subplot(2,2,4);plot(t,angle(f));title('相位角');axis([0,3,-4,4]);grid on;
t=0:0.01:3;
k=2;a=-1.5;b=10;
f=k*exp((a+i*b)*t);
subplot(2,2,1);plot(t,real(f));title('实部');axis([0,3,-2,2]);grid on;
subplot(2,2,2);plot(t,imag(f));title('虚部');axis([0,3,-2,2]);grid on;
subplot(2,2,3);plot(t,abs(f));title('模');axis([0,3,-2,2]);grid on;
subplot(2,2,4);plot(t,angle(f));title('相位角');axis([0,3,-4,4]);grid on;
看了 看看这个matlab程序错在...的网友还看了以下:
某企业中存在部门A与部门B,部门A的地址段为172.11.0.0/24,部门B使用地址段为192.1 2020-05-31 …
特别是有效地址范围的解答?分配一个C类地址,192.168.10.0/24,按照要求各部分配IP地 2020-06-08 …
求数学高手,奖励大大的如果直线2ax-by+5=0(a>0,b>0)和函数f(x)=m^(x+1) 2020-06-12 …
如图所示,用销钉固定的活塞把导热气缸分隔成两部分,A部分气体压强PA=6.0×105Pa,体积VA 2020-06-22 …
如图,表示抛物线y=ax2+bx+c的一部分图象,它与x轴的一个交点为A,与y轴交于B,则b的取值 2020-06-29 …
函数f(x)=lg(1-x2),集合A={x|y=f(x)},B={y|y=f(x)},则如图中阴 2020-07-30 …
1.已知函数f(x)=x^3+x(x∈R)若a,b,c∈R,且a+b>0,b+c>0,a+c>0, 2020-07-30 …
已知平面上三点A(0,0),B(10,0),D(0,6),过原点的直线将三角形ABD分成面积比为2: 2020-11-03 …
某系统由A、B两个部分组成,两部分工作相互独立,且两部分均失效才能导致系统失效,若A部分的失效概率为 2020-11-16 …
某人若以每股17.25元购进股票一万股,一年后以每股18.96元抛售,该年银行月利率0.8%,按月计 2021-01-12 …