Initial Plot of a State-Space System

조회 수: 4 (최근 30일)
Taha Erkam Orhan
Taha Erkam Orhan 2020년 4월 23일
댓글: Ameer Hamza 2020년 4월 23일
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)

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 23일
편집: Ameer Hamza 2020년 4월 23일
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
Taha Erkam Orhan
Taha Erkam Orhan 2020년 4월 23일
Thanks for the answer.
Ameer Hamza
Ameer Hamza 2020년 4월 23일
I am glad to be of help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Control System Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by