MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   急啊!高人帮我看下程序错在哪。 (https://www.labfans.com/bbs/showthread.php?t=5337)

xulin 2008-11-15 17:03

急啊!高人帮我看下程序错在哪。
 
function MultiAR(P)
clear
p=input;
Np=input('number of the points in the wind field = ')
Td=input;
% 第一列为点编号,第二至四列分别为X,Y,Z三个方向的坐标
load 'coor.txt'
XYZ=coor;
X=coor(:,2);
Y=coor(:,3);
Z=coor(:,4);
%%%%%%%
fg=2.5;
kg=0.60;
s0=0.6;
A=0.736;
a=0.147;
vapp=2.5;
RR=[];
syms f
for s=0:p
for n=1:Np
for m=1:n
d=sqrt((X(n)-X(m)).^2+(Y(n)-Y(m)).^2+(Z(n)-Z(m)).^2);
D=sqrt((X(n)-X(m)).^2+(Y(n)-Y(m)).^2);
q=3300/(sqrt(1+(4*f/3).^2));
[COLOR="Red"]F=@(f)(s0*(1+(2*kg*f./fg).^2)*(A*exp((-2)*d*(1-A+a*A)./(a*q))+(1-A)*exp((-2).*d.*(1-A+a*A)./q))*cos(2*pi*f*(s.*dt-D./vapp)))./((1-(f./fg).^2).^2+(2*kg*f./fg).^2);[/COLOR]
Q=quadl(F,0,10);
Q(n,m)=Q(m,n);
end
end
RR=[RR Q];
end


高人请指教啊 ,程序函数F=@(f)(...)怎么改都报错
“??? Error using ==> sym.mtimes
Inner matrix dimensions must agree.”

现在很急,还请大家帮帮我啊,在下感激涕零!!!

xulin 2008-11-15 20:31

回复: 急啊!急!急!高人帮我看下程序错在哪。
 
好心人帮帮我啊
真的很急
我调了很久硬是没有调对

cyxsky 2008-11-16 22:30

回复: 急啊!急!急!高人帮我看下程序错在哪。
 
兄弟,这是关于哪方面的程序啊,土木么?


所有时间均为北京时间。现在的时间是 11:21

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.