diagram

Visualization

Auto-generate a block diagram from control system connections. Shows transfer function blocks, summing junctions, branch points, and signal flow arrows. Works with series(), feedback(), and sl_parallel() connections. The connection tree is recorded automatically — just build a system and call diagram().

Syntax

diagram(sys)
diagram(feedback(series(G1, G2), H))

Examples

G = tf([1], [1 2]);
C = tf([10 5], [1 0]);
sys = feedback(series(C, G), tf([1],[1]));
diagram(sys)
▶ Run
G1 = tf([1], [1 2]);
G2 = tf([3], [1 0 4]);
H = tf([1 0], [1 5]);
sys = feedback(series(G1, G2), H);
diagram(sys)
▶ 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.