How to set the step size signal using step command?

I am trying to invoke a step signal to my State space equation but the step value is unity. I want to inject a value around 91 to my state space model using the "step" command. Thanks in advance!

 採用された回答

Star Strider
Star Strider 2017 年 10 月 28 日

0 投票

The step function only delivers unit amplitudes.
One option would be to cascade an ‘amplifier’ with your system.
Example
a = [-0.5572,-0.7814;0.7814,0];
b = [1,-1;0,2];
c = [1.9691,6.4493];
sys = ss(a,b,c,0);
[y1, t1] = step(sys);
a = [-0.5572,-0.7814;0.7814,0];
b = [1,-1;0,2] * 91;
c = [1.9691,6.4493];
sys = ss(a,b,c,0);
[y2, t2] = step(sys);
figure(1)
subplot(2,1,1)
plot(t1, squeeze(y1))
title('Original')
grid
subplot(2,1,2)
plot(t2, squeeze(y2))
title('Amplified')
grid

4 件のコメント

Mr. NailGuy
Mr. NailGuy 2017 年 10 月 28 日
I see, I was actually able to figure it out now. There is command that changes the step function amplitude :)
Star Strider
Star Strider 2017 年 10 月 28 日
You can access and specify the stepDataOptions structure and set the StepAmplitude field to be whatever you want. I do not remember when this was introduced, and since many here have older MATLAB releases, I did not mention it.
Mr. NailGuy
Mr. NailGuy 2017 年 10 月 28 日
Yeah, I am using a latest version so I have his command :) Thanks
Star Strider
Star Strider 2017 年 10 月 28 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by