Use the Matlab function EXPM()

8 views (last 30 days)
ahmed dalatony
ahmed dalatony on 10 Apr 2019
Commented: Rik on 9 Feb 2022
Given the attached State Equation and initial condition:
(a) Use the Matlab function EXPM() to compute a numerical representation for the Matrix Exponential. You will need to establish a time vector that has an appropriate time resolution and an appropriate time duration to numerically capture the time dependency of each element in the matrix exponential.
(b) Use the Symbolic Toolbox with the EXPM() function in Matlab to generate a
symbolic representation for the Matrix Exponential.
(c) Numerically evaluate the symbolic representation from (b) using the same time
vector from (a).
(d) Generate an analytic representation for the Matrix Exponential using Laplace
Transforms. You should do this problem by hand, but you are welcome to use
the Symbolic Toolbox in Matlab to check your result.
(e) Numerically evaluate the symbolic representation from (d) using the same time
vector from (a).
(f) Use Matlab to generate a plot of all elements in the Matrix Exponential. In this
plot, you must compare the numerical results from (a), (c), and (e). Your subplots
must be properly annotated and clearly show all three curves in the comparison.
(Hint: If you did the problem correctly, the numerical results should be identical.
If you plot three identical curves on top of each other, you will only be able to
see the last one plotted. You need to show all three identical curves without
  2 Comments
Rik
Rik on 9 Feb 2022
Regarding the flag by @ahmed dalatony ("delete the the content, please"):
Why do you want to delete the content?
Use the Matlab function EXPM()
Given the attached State Equation and initial condition:
(a) Use the Matlab function EXPM() to compute a numerical representation for the Matrix Exponential. You will need to establish a time vector that has an appropriate time resolution and an appropriate time duration to numerically capture the time dependency of each element in the matrix exponential.
(b) Use the Symbolic Toolbox with the EXPM() function in Matlab to generate a
symbolic representation for the Matrix Exponential.
(c) Numerically evaluate the symbolic representation from (b) using the same time
vector from (a).
(d) Generate an analytic representation for the Matrix Exponential using Laplace
Transforms. You should do this problem by hand, but you are welcome to use
the Symbolic Toolbox in Matlab to check your result.
(e) Numerically evaluate the symbolic representation from (d) using the same time
vector from (a).
(f) Use Matlab to generate a plot of all elements in the Matrix Exponential. In this
plot, you must compare the numerical results from (a), (c), and (e). Your subplots
must be properly annotated and clearly show all three curves in the comparison.
(Hint: If you did the problem correctly, the numerical results should be identical.
If you plot three identical curves on top of each other, you will only be able to
see the last one plotted. You need to show all three identical curves without

Sign in to comment.

Answers (1)

David Wilson
David Wilson on 10 Apr 2019
I'll get you going on part (b):
syms t positive
A = sym([0,-5;1,-2]);
Phi = expm(A*t)

Tags

Community Treasure Hunt

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

Start Hunting!