程序有错?错在那?谢谢
新手求助:帮我看看着个程序的错误在那,谢谢了function[N,G]=solution(ALAR,ALAS,FLS1);
G=cell(1,20),A=cell(1,20),B=cell(1,20);
ALAR,ALAS,FLS1
X=exp(0.1.*ALAR.*log(10))-1;
Y=exp(0.1.*ALAS.*log(10))-1;
AC=sqrt(X./Y);
AA=AC+sqrt(AC.*AC-1.0);
AB=FLS1+sqrt(FLS1.*FLS1-1.0);
BC=log(AA)./log(AB)+nan;
if fix(BC)==BC;
N=BC;
else;
N=BC+1;
end;
M=fix(N/2).*2;
if M==N;
N=N+1;
else;
N=N
end;
G(0)=1.0;
G(N+1)=1.0;
C=tanh(ALAR./17.37);
BETA=log(1.0./c);
GAMA=sinh(BETA./2.0./N);
for J=1:N;
A(J)=sin((2.0.*J-1.0).*PI./(2.0.*N));
B(J)=GAMA.*GAMA+sin(J.*PI./N).* sin(J.*PI./N);
end
for J=2:N;
G(J)=4.0.*A(J-1).*A(J)./(B(J-1).*G(J-1))
end;