Initial Plot of a State-Space System
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Taha Erkam Orhan
am 23 Apr. 2020
Kommentiert: Ameer Hamza
am 23 Apr. 2020
Hello my professor gave me a State-space system and want me to plot initial response via initial(sys,x0,Tfinal) function. Problem is in the question there is only A matrix is given. When I try to plot with only A matrix it gives empty plot. When I try it with made up C matrix it gives a plot. I need to do plot with only A matrix. I would be appreciated if you could help me out.
Matlab Code:
a = [0, 1; -1, 0];
x0 = [1 ; -2];
sys = ss(a,[],[],[]);
initial(sys,x0)
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 23 Apr. 2020
Bearbeitet: Ameer Hamza
am 23 Apr. 2020
The response of a state-space model with matrix C does not make any sense. I guess the professor wanted to make matrix C as identity matrix. try this
c = eye(2);
a = [0, 1; -1, 0];
x0 = [1 ; -2];
sys = ss(a,[],c,[]);
initial(sys,x0)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Control System Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!