Matlab7的?Error using ==> mrdivide Matrix dimensions must agree.a=1;b=1;k=1;x=1:0.1:20;NA=-pi/2*k/(asin(a/x)+(a/x).*sqrt(1-(a/x).^2));w=1:0.01:200;K=10;num=K;den=conv([0.5 1 0],[0.2 1]);[rem,img,w]=Nyquist(num,den,w);plot(real(NA),img(NA),rem,img)gr

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 03:27:26
Matlab7的?Errorusing==>mrdivideMatrixdimensionsmustagree.a=1;b=1;k=1;x=1:0.1:20;NA=-pi/2*k/(asin(a/x)

Matlab7的?Error using ==> mrdivide Matrix dimensions must agree.a=1;b=1;k=1;x=1:0.1:20;NA=-pi/2*k/(asin(a/x)+(a/x).*sqrt(1-(a/x).^2));w=1:0.01:200;K=10;num=K;den=conv([0.5 1 0],[0.2 1]);[rem,img,w]=Nyquist(num,den,w);plot(real(NA),img(NA),rem,img)gr
Matlab7的?Error using ==> mrdivide Matrix dimensions must agree.
a=1;
b=1;
k=1;
x=1:0.1:20;
NA=-pi/2*k/(asin(a/x)+(a/x).*sqrt(1-(a/x).^2));
w=1:0.01:200;
K=10;
num=K;
den=conv([0.5 1 0],[0.2 1]);
[rem,img,w]=Nyquist(num,den,w);
plot(real(NA),img(NA),rem,img)
grid;
xlabel('Re');
ylabel('Im');
NA那部分的代码出了问题,我该如何修改这个程序?

Matlab7的?Error using ==> mrdivide Matrix dimensions must agree.a=1;b=1;k=1;x=1:0.1:20;NA=-pi/2*k/(asin(a/x)+(a/x).*sqrt(1-(a/x).^2));w=1:0.01:200;K=10;num=K;den=conv([0.5 1 0],[0.2 1]);[rem,img,w]=Nyquist(num,den,w);plot(real(NA),img(NA),rem,img)gr
改成NA=-pi/2.*k./(asin(a./x)+(a./x).*sqrt(1-(a./x).^2));
全部改成点乘点除就可以了.