Why are some of the outputs' first values ​​not equal to zero?

1 回表示 (過去 30 日間)
Volkan Yangin
Volkan Yangin 2020 年 12 月 1 日
コメント済み: Ameer Hamza 2020 年 12 月 1 日
Hi,
My state space system contains 6 outputs and some of them's first values are not zero. In my opinion, when t=0; first values of outputs should be zero, but step command doesn't give me all of them as 0.
It may be because of D, but i'm not sure.
Is there any point which i miss? How can i make first values of y1 an y4 zero? Can it be possible?
Thanks,
clear all
clc
A=[-7.4 -10.6;-0.7 -16.9];
B=[37.3;63.8];
C=[-7.4 0;0 1;1 0;-0.1 -0.14;-0.1 0.13;0.1 0];
D=[37.3;0;0;1;0;0];
sys=ss(A,B,C,D);
t=0:0.01:10;
[y,t]=step(sys,t)

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 12 月 1 日
Yes, it is because of matrix 'D'. At t=0, the values of all the states 'x' will be zero, but the value of output 'y' will not be equal to zero for your system. For example, change the line to
[y,t,x]=step(sys,t);
and check the value of 'x'. It starts at 0.
  2 件のコメント
Volkan Yangin
Volkan Yangin 2020 年 12 月 1 日
Thanks a lot Ameer.
Ameer Hamza
Ameer Hamza 2020 年 12 月 1 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDynamic System Models についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by