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

 採用された回答

James Tursa
James Tursa 2018 年 2 月 26 日

0 投票

"...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);

その他の回答 (0 件)

タグ

質問済み:

2018 年 2 月 26 日

回答済み:

2018 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by