MATLAB: Step response of a signal MATLABstep response 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. Best 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 Systemt = linspace(0,100); % Time VectorConst = 4.2;u = Const * t; % Ramp Functionfigurelsim(H, u, t); % System Response To RampMake necessary changes to the ‘t’ vector and ‘Const’ to work with your code. Related SolutionsMATLAB: How can i find the lsim info for this transfer function G = tf(1,[1 2 5]); % whatever your transfer function is t=0:0.001:1; u=100*heaviside(t); % Step in 100 level resp = lsim(G,u,t); S = lsiminfo(resp,t);The above user resp(end) as the steady-state value. MATLAB: How can i plot transfer function with step signal input You can multiplythem together and then use the impulse() functions = tf('s');G = 2/(s+2);R = 2/s;sys = G*R;impulse(sys) Related Question
Best Answer