How to solve ode functions?
显示 更早的评论
Hi there,
Please see my code which is attached here. I have tried to run it, but it says not enough inputs.
Can anyone help me with this?
Thank you very much for your help.
2 个评论
You defined a function in a script. The function requires two inputs arguments:
function [velocity, time]= diff_eqn(t1,depth)
When you called the function, did you provide it with both of those inputs?
Danny Maefengea
2020-9-16
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!