step response of a signal
조회 수: 1 (최근 30일)
이전 댓글 표시
hey,
how can I insert a step signal type which isn't equal to one, but of a type const*1(t).
the command step(sys) gives the response for const=1.
댓글 수: 0
채택된 답변
Star Strider
2018년 12월 8일
Your ‘const*t’ signal is a ramp function. Probably the easiest way to do what you want is to use the lsim function:
s = tf('s');
H = s/(s^2 + 1); % Arbitrary System
t = linspace(0,100); % Time Vector
Const = 4.2;
u = Const * t; % Ramp Function
figure
lsim(H, u, t); % System Response To Ramp
Make necessary changes to the ‘t’ vector and ‘Const’ to work with your code.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!