About expm function error
Ältere Kommentare anzeigen
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 Kommentar
ZHICHEN LIU
am 3 Feb. 2022
Akzeptierte Antwort
Weitere Antworten (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 Kommentare
ZHICHEN LIU
am 3 Feb. 2022
William Rose
am 3 Feb. 2022
The code you posted ran fine, without error, in 2018b and 2021a versions. I don;t have 2019.
ZHICHEN LIU
am 3 Feb. 2022
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

