Question: Matlab code to rewrite in Maple

Dear All,

 

Can someone help me,  to write following matlab code in MAPLE  (only two highlighted lines).   I shall be very thankful to you.

 

w0=[0.01*aCM];                          %initial values
 
options=optimset('Display','off','TolFun',1e-24,'TolX',1e-18,'LargeScale','on','MaxFunEvals',5000); % Option to display output

for i=1:length(z) 

[w(i),resnorm,residual,exitflag]=lsqnonlin(@fun_w_pm,w0,[],[],options,z(i),FCM,aCM,bCM,gprime,Rp2,theta2); % Call optimizer

k(i)=exp(j*gprime/pi*log(w(i))+log(Rp2)+j*thetas/2);

lambda(i)=k(i)*(w(i)-1)/(w(i)-aCM)^(1/2)/(w(i)-bCM)^(1/2)/s(i);

w0=w(i);

end

 

Best Regards

A.Q

Soton

Please Wait...