So we have this code p = ((2*W^2)/((pi*e*AR*S*v)/((Pa0 / p0)-(0.5*CD0*S*v.^3)))^0.5) AR = 23.8582 CD0=0.025 Pa0=140000 S=16.2 W=13244 b=11 e=0.85 p0=1.225 v is a vector and its values are 0:1:80 Im trying to get a range of answers hence the use of the vector (v). but whatever I do its either giving me unexpected errors or giving me a single answer! Any help will be much appreciated as this has taken way too long already :) Thank you!
Hey, to get your code to work, you have to realize that you can't simply divide by a vector. just like how you used .^ to add a power, you have to use ./ to divide by a vector. p = ((2*W^2)./((pi*e*AR*S.*v)./((Pa0 / p0)-(0.5*CD0*S.*v.^3))).^0.5) This worked for me, as for the correctness of the formula itself, i didnt look at that ;)
yep that seemed to work, I kind of knew I needed the periods but I had no idea where to put them! Thank you.
Join our real-time social learning platform and learn together with your friends!