Not enough input arguments?
Mostrar comentarios más antiguos
I'm trying to make a user-define function that accepts time as an input and gives me an output of height. Here is the code I am using currently.
For some reason it keeps giving me the error on line 2 that I do not have enough input arguments. What does this mean? Thank you!
function h=height(t)
h=(-(9.8/2).*t.^2)+(125.*t)+500;
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Platform and License en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!