Not enough input arguments?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Platform and License dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!