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

 Respuesta aceptada

James Tursa
James Tursa el 26 de Feb. de 2018

0 votos

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

Más respuestas (0)

Etiquetas

Preguntada:

el 26 de Feb. de 2018

Respondida:

el 26 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by