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개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

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