How can I convert a symbolic matrix to a function matrix

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)

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

Asked:

on 31 May 2016

Answered:

on 31 May 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!