Hi, I write the code incorporates for loop with "fsolve" function. But it seems that it does not executed correctly. In my code, I started my loop with "for n=[1,2,3]" but it was run by the order of 0,0,3 instead of 1,2,3
Below is my code:
V=0+acc*n; gama=90-n*90/(Vc/acc); L=Cl*0.5*dair*V^2*A; D=Cd*0.5*dair*V^2*A;
Here is the function called "thrustandangle" I used to solve two unknowns
% x1=Tav % x2=at
Can you kindly help me with this issue?