早教吧作业答案频道 -->其他-->
看看这个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程序错在...的网友还看了以下:
1.设f(x)=ax^2+bx,且-1≤f(-1)≤2,2≤f(1)≤4,求f(-2)的取值范围2 2020-04-27 …
已知函数g(x)=根号下x^2-2(x>=2)的导数为g'(x)=x/(根号下x^2-2)(x>= 2020-05-14 …
已知关于X的一元二次方程x^2+2(k-1)x+k^2-1=0有两个不相等的实数根已知关于x的一元 2020-05-16 …
已知函数f(x)=3x2+2(k-1)x+k+5(k∈R)(1)对任意k∈(-1,1),不等式f( 2020-06-12 …
已知二次函数f(x)满足f(-2-k)=f(-2+k)(k∈R),且该函数的图象与y轴交于点(0, 2020-06-12 …
已知函数f(x)=2x/(x^2+6),若f(x)>k的解为x<-3或x>-2,求k的值?已知函数 2020-06-27 …
已知二次函数f(x)满足f(-2+k)=f(-2-k)(k∈R)且该函数的图像与y轴交于点(0,1 2020-08-02 …
(x-2)^2=9(x+3)(步骤)用十字相乘法:x^2-5倍的根号2*x+83x^2-2x-1= 2020-08-03 …
设函数f(x)=1/2x2+x-41.当x属于[-2,2]时求f(x)值域.2设函数f(x)=1/2 2020-11-28 …
求f(x)解析式1.已知f(1+1/x)=x2+1/x2+3/x,求f(x)解析式2.已知f(求f( 2020-12-08 …