About expm function error
Show older comments
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 Comment
ZHICHEN LIU
on 3 Feb 2022
Accepted Answer
More Answers (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 Comments
ZHICHEN LIU
on 3 Feb 2022
William Rose
on 3 Feb 2022
The code you posted ran fine, without error, in 2018b and 2021a versions. I don;t have 2019.
ZHICHEN LIU
on 3 Feb 2022
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
