Output Jacobian function is not matrix

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);

Respuestas (1)

madhan ravi
madhan ravi el 9 de Nov. de 2020

0 votos

What you have is a SYMBOLIC matrix.

2 comentarios

Walter Roberson
Walter Roberson el 9 de Nov. de 2020
... and you probably want to use matlabFunction() with it.
madhan ravi
madhan ravi el 9 de Nov. de 2020
Thank you sir Walter!

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Nov. de 2020

Comentada:

el 9 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by