How can I convert a symbolic matrix to a function matrix
2 次查看(过去 30 天)
显示 更早的评论
I used matlab to calculate a bunch of derivatives and placed it into a matrix of the format that I need it in using a script. The derivatives are rather long so I would like to avoid copy pasting them into a function that is supposed to calculate numerical values of the matrix. How can I symbolically calculate derivatives and then put the values into the matrix after symbolic differentiation?
0 个评论
回答(1 个)
Steven Lord
2016-5-31
If I understand what you're asking to do correctly, I think you want to use matlabFunction to generate the function from the symbolic expressions automatically.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!