matlab程序出错,矩阵大小不匹配?
以下是我的程序:rho=0:0.001:2;theta=0:pi/1000:2*pi;[x,y]=pol2cart(theta,rho);[x,y]=meshgrid(x...
以下是我的程序:
rho=0:0.001:2;
theta=0:pi/1000:2*pi;
[x,y]=pol2cart(theta,rho);
[x,y]=meshgrid(x,y);
f=10e6;
v=1460;
Rs=7e-3;
z=Rs*besselj(1,2*pi*Rs*sin(theta)*f./v)./(rho*sin(theta));
mesh(x,y,z)
程序报错:
Error using *
Inner matrix dimensions must agree.
在下初学matlab,请问大神要怎么改呢? 展开
rho=0:0.001:2;
theta=0:pi/1000:2*pi;
[x,y]=pol2cart(theta,rho);
[x,y]=meshgrid(x,y);
f=10e6;
v=1460;
Rs=7e-3;
z=Rs*besselj(1,2*pi*Rs*sin(theta)*f./v)./(rho*sin(theta));
mesh(x,y,z)
程序报错:
Error using *
Inner matrix dimensions must agree.
在下初学matlab,请问大神要怎么改呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询