MATLAB Answers

0

Forced step response of a signal

Donovan Angela さんによって質問されました 2018 年 11 月 6 日
最新アクティビティ Donovan Angela さんによって コメントされました 2018 年 11 月 7 日
I'm pretty new to matlab and I'm having a hard time understanding how the signals &systems part works. All I have to do is find the step response of a system, both a "normal" response and a "forced " response, while having initial conditions. I searched this forum and I couldn't really find something similar. Maybe because it's an easy one but I don't know.
I tried using 'step' but I didn't know how to use the initial conditions with it. Also, I found out 'initial' and I tried using it but it didn't really work out either.

  0 件のコメント

サインイン to comment.

タグ

2 件の回答

Aquatris
回答者: Aquatris
2018 年 11 月 7 日
 採用された回答

I recommend you look into lsim() function, which is a lot more flexible than the step() or impulse() functions, and would be useful for the future as well.

  1 件のコメント

Donovan Angela 2018 年 11 月 7 日
Thank you, got it right finally (with lsim)

サインイン to comment.


M
回答者: M
2018 年 11 月 7 日

You can set the initial values of the step using stepDataOptions: https://mathworks.com/help/control/ref/stepdataoptions.html
What was the problem with initial ?

  0 件のコメント

サインイン to comment.



Translated by