How can I convert a symbolic matrix to a function matrix

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Steven Lord
Steven Lord il 31 Mag 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.

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by