How to save function to calculate in an equation?
1 次查看(过去 30 天)
显示 更早的评论
How do you save dydx so it's not a function and can be calculated in error?
At the moment, I get the error: "Undefined operator '-' for input arguments of type 'function_handle'." And it seems because my dydx is a function, it cannot be calculated.
0 个评论
回答(1 个)
Steven Lord
2019-10-21
You can't add a function handle and a number.
You can add the value you receive from evaluating a function handle and a number.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!