Output Jacobian function is not matrix

17 vues (au cours des 30 derniers jours)
Fabrizio Lo Regio
Fabrizio Lo Regio le 9 Nov 2020
Commenté : madhan ravi le 9 Nov 2020
Hello to everybody,
I have to use the "jacobian" function in Matlab and the output not seems a matrix. How can i have J like a matrix in the classic form?
X=sym('X',[3 1]);
y=myfunction(X);
J=jacobian(y,X);

Réponses (1)

madhan ravi
madhan ravi le 9 Nov 2020
What you have is a SYMBOLIC matrix.
  2 commentaires
Walter Roberson
Walter Roberson le 9 Nov 2020
... and you probably want to use matlabFunction() with it.
madhan ravi
madhan ravi le 9 Nov 2020
Thank you sir Walter!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by