MATLAB: Am I finding the Step and Impulse Response Correctly Control System Toolboxfunctionsimpulse responseMATLABstep response Given the function: dy(t)/dt + 3y(t) = x(t) step([1],[1,3],t);impulse([1],[1,3],x,t); Best Answer t=0:0.1:10step([1],[1,3],t);%ory=step([1],[1,3],t);plot(y)%andimpulse([1],[1,3],t);%ory=impulse([1],[1,3],t);plot(y)%orN=1;D=[1 3];model=tf(N,D)step(model)figureimpulse(model)%if x(t) is any input signal uset=0:0.1:10;x=exp(-t)lsim(model,x,t) Related SolutionsMATLAB: How to plot periodic signals X = @(t) t .* (0 <= t & t < 1);tvals = linspace(-10,10);plot(tvals, X(tvals)); MATLAB: How to remove the dotted steady state line from the step response plot? I used the step() command to plot the step response of 94 transfer function in one plot. You can add one more step and assign the step response to a variable and then plot it:sys = tf([8 18 32],[1 6 14 24])y = step(sys)plot(y) Related Question
Best Answer