FUNCTION REFERENCE
impulse
Impulse responses of an LTI model.
Impulse responses of an LTI model.
Syntax
[y,t,x] = impulse(sys[,t_or_final_time])Syntax
impulse(sys1,sys2,...[,t_or_final_time])The outputs y and x have time in the first dimension, output or state in the second, and the excited input in the third. t is a time column. Without outputs, plots or overlays the responses with a shared time axis. Continuous responses return the regular part C*exp(A*t)*B; a direct-feedthrough Dirac delta is omitted. Discrete input is 1/Ts at the first sample and zero thereafter, so its sampled area is one. SISO transport delays shift the response.
Automatic time and bounds follow step: poles with abs(p)<=1e-10 are treated as integrators and contribute 10; other stable poles contribute 7/abs(real(p)), other unstable or imaginary poles 10/abs(p). Use the largest contribution; fallback 10 for static continuous models, 100*Ts for static discrete models. Discrete poles use log(z)/Ts. Rates above the integrator threshold with abs(real(p))<=1e-10*abs(p) are treated as purely imaginary and contribute 10/abs(p), including rates obtained from discrete poles. Continuous grids have clamp(ceil(25*Tfinal*fastest_pole_rate)+1,100,10000) points; discrete grids use floor(Tfinal/Ts)+1 at Ts (at most 10000). Default discrete counts are clamped to 100..10000 while keeping Ts, extending or truncating the horizon. Explicit grids must start at zero, be uniform and have 2..10000 points; discrete spacing is Ts.
Example
G=tf(1,[1 0.4 1]); [y,t]=impulse(G,0:0.1:10)Differences from MATLAB: Continuous feedthrough impulses are omitted, and automatic grids differ. No impulse configuration options.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.