lsim

Control Systems

Linear simulation. Simulate the time response of a transfer function to an arbitrary input signal u over time vector t. Returns { t, y } with time and output arrays.

Syntax

lsim(sys, u, t)

Examples

H = tf([1], [1, 1]); t = linspace(0, 10, 100); u = sin(t); result = lsim(H, u, t)
▶ Run
H = tf([1], [1, 2, 1]); t = linspace(0, 5, 200); u = ones(1, 200); r = lsim(H, u, t)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.