Requires More Input Arguments

function assorted = LAB3Func(h)
while (h > 0) && (h < 11)
T = 288.16+ (-6.5*10^-3)*(h-0);
P = (1.01325*10^5)*(1+((-6.5*10^-3)/T)*(h-0));
D = 1.2250*(1+((-6.5*10^-3)/T)*(h-0));
h = h + 1;
end
after this while it is just repeating while loops of the exact same sort. Fixing this one should fix the others

 Accepted Answer

"...Requires More Input Arguments..." usually means you didn't call the function with enough input arguments. E.g., you could call it like this
h = 5;
assorted = LAB3Func(h);

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!