performing iterations until equation becomes zero
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    sunitha
 am 6 Feb. 2021
  
    
    
    
    
    Kommentiert: sunitha
 am 8 Feb. 2021
            i have to perform the iterations for equations,here i gave for the values  N starting 0.1 upto 5 .i have to perform iterations until the sold equation becomes to zero.I am not getting any errors,but i am getting wrong values.can anyone help me ??
for i=0.1:0.1:5
    i=N;
No=(Ns+R*N(i))/(1+R);
Nstar=N(i)/(1000*Kn);
jstar=(((sqrt((Lstar^1.76)+(5.2*(Nstar(i)-Nstar_min)))-(Lstar^0.88))/2.6)^1.136);
J=(jstar*(sqrt(Kn*k*Xf*Df)));
X =((bt*Qo*(1+R)*Xo)+(Y*1000*a*V*J*bs))/(bt*((Qo*(1+R))-((V*Y*k*N(i))/((Kn*1000)+N(i)))+V*kd));
sold=Qo*(1+R)*(No-N(i))-V*((a*J*1000)+((X*k*N(i))/((Kn*1000)+N(i))))
end 
0 Kommentare
Akzeptierte Antwort
  Alan Stevens
      
      
 am 6 Feb. 2021
        Shouldn;t your first few lines here be:
N = 0.1:0.1:5;
for i=1:numel(N)
No=(Ns+R*N(i))/(1+R);
...etc
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Dynamic System Models finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

