How can I convert a symbolic matrix to a function matrix
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Steven Lord
on 31 May 2016
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 Comments
See Also
Categories
Find more on Symbolic Math Toolbox 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!