About expm function error
Mostrar comentarios más antiguos
Can someone help me?
I am trying to use expm function in matlab to do some calculation. However, everytime I use the expm() function, the system give me an error.
I want to use expm(M) not exp(M).
syms a b x;
H=[a*b,x;a,x-b];
M=int(H,x);
M
expm(M)
1 comentario
ZHICHEN LIU
el 3 de Feb. de 2022
Respuesta aceptada
Más respuestas (1)
I do not get an error when I run the code.
syms a b x;
H=[a*b,x;a,x-b];
M=int(H,x);
M
expm(M)
See above.
3 comentarios
ZHICHEN LIU
el 3 de Feb. de 2022
William Rose
el 3 de Feb. de 2022
The code you posted ran fine, without error, in 2018b and 2021a versions. I don;t have 2019.
ZHICHEN LIU
el 3 de Feb. de 2022
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

