Hi everyone, i've a problem with a line in this code. Could someone help me?
for i=1:righe isp1=isp(i,1); isp2=isp(i,2); [m0_min,dv1_opt]=codice_parametrico(ks1,ks2,mpl,v,isp1,isp2); M0_min(i,1)=m0_min; Dv1_opt(i,1)=dv1_opt; esponenziale(i,1)=exp(-((1-Dv1_opt(i,1)/100).*v)./(isp2.*9.807)); M2_min(i,1) = M0_min(i,1).*esponenziale(i,1);_ acceleration(i,1) = thrust(i,1)./M0_min(i,1); acceleration(i,2) = thrust(i,2)./M2_min(i,1);end
When i try to fill the M2_min array matlab tell me the error. Previously i initialize M2_min as an M2_min=zeros(righe,1). I don't know where i make a mistake
Best Answer