Use the Matlab function EXPM()

16 Ansichten (letzte 30 Tage)
ahmed dalatony
ahmed dalatony am 10 Apr. 2019
Kommentiert: Rik am 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 Kommentare
Rik
Rik am 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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

David Wilson
David Wilson am 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!

Translated by