How to create a function with a large number of variables, and get its gradient and Jacobian matrix,like following
2 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Alan Weiss
2017-5-14
If you have a Symbolic Math Toolbox license, you can work along the lines of this example. Or of this example, which uses files rather than function handles.
Alan Weiss
MATLAB mathematical toolbox documentation
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 求解器输出和迭代输出 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!