MATLAB Answers

0

step response of a signal

Asked by Eliraz Nahum on 8 Dec 2018
Latest activity Answered by Star Strider
on 8 Dec 2018
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 Comments

Sign in to comment.

Products


Release

R2018b

1 Answer

Star Strider
Answer by Star Strider
on 8 Dec 2018
 Accepted Answer

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 Comments

Sign in to comment.