早教吧作业答案频道 -->其他-->
看看这个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= (2 0 0) B=(1 0 0)(0 a 2) (0 2 0)(0 2 3) (0 0 b 2020-05-16 …
急!在0.28 2/7 25.8% 0.285,2 5循环中,最大的是(),最小的是()在0.28 2020-05-16 …
y=x的平方+ax+b在0≤x≤2上有最小值-1/4,最大值2,若-4<a<-2,则a.by=x的 2020-05-23 …
问一个积分证明题设f(x)在[0,a]上连续(a>0),证明:∫(0,a)dx∫(0,x)f(x) 2020-06-12 …
已知函数y=f(x)是偶函数,y=f(x-2)在[0,2]上是单调减函数,则()A.f(0)<f( 2020-06-26 …
请告诉我下面一题的解法.已知a和b是有理数,若 ,,则在a和b之间一定( )(A)存在负整数 (B 2020-06-27 …
a^3-2a^2-a+7=5,把这个式子分解公因式.答案是(a+1)(a-1)(a-2)=0,不知 2020-08-01 …
已知函数y=x+a/x有如下性质:如果常数a>0,那么该函数在(0,√a]上是减函数,在[√a,+ 2020-08-01 …
已知函数f(x)=x2+a|x-1|,a为常数.(1)当a=2时,求函数f(x)在[0,2]上的最小 2020-12-08 …
设f(x)=(x+2)/(x+1)sin1/x,a>0为任意正常数,证明:f(x)在(0,a)内非一 2021-01-12 …