Not enough input arguments?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Platform and License in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!