看看这个matlab程序错在哪了

学习 时间:2026-04-04 16:38:12 阅读:7353
看看这个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

最佳回答

谦让的羊

迅速的泥猴桃

2026-04-04 16:38:12

横坐标是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;

最新回答共有2条回答

  • 平淡的棒球
    回复
    2026-04-04 16:38:12

    横坐标是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;

上一篇 “商妓”“艺妓”“声妓”“官妓” 有什么区别?

下一篇 字体演变中,象形文字后大篆后小篆而后隶书,再后面呢?