How can I convert a symbolic matrix to a function matrix

3 views (last 30 days)
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?

Answers (1)

Steven Lord
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.

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!