schematic

Visualization

Generate an SVG schematic of a physical system with labeled component values. Supports 10 system types: 'spring-mass-damper', 'pendulum', 'damped-pendulum', 'rlc-circuit', 'coupled-masses', 'rotational', 'dc-motor', 'thermal', 'tank', 'double-pendulum'.

Syntax

schematic('spring-mass-damper', struct('m', 2, 'c', 0.5, 'k', 10))
schematic('pendulum', struct('L', 1, 'm', 0.5))
schematic('dc-motor', struct('R', 1, 'L', 0.01, 'Kb', 0.1, 'Kt', 0.1, 'J', 0.01, 'b', 0.001))

Examples

schematic('spring-mass-damper', struct('m', 2, 'c', 0.5, 'k', 10))
▶ Run
schematic('pendulum', struct('L', 1, 'm', 0.5, 'g', 9.81))
▶ Run
schematic('rlc-circuit', struct('R', 100, 'L', 0.01, 'C', 0.001))
▶ Run
schematic('rotational', struct('I', 0.5, 'b', 0.1, 'tau', 2))
▶ Run
schematic('dc-motor', struct('R', 1, 'L', 0.01, 'Kb', 0.1, 'Kt', 0.1, 'J', 0.01, 'b', 0.001))
▶ Run
schematic('thermal', struct('m', 1, 'C', 500, 'h', 10, 'A', 0.1, 'T_env', 25))
▶ Run
schematic('tank', struct('A', 1, 'Cd', 0.6, 'a', 0.01))
▶ Run
schematic('double-pendulum', struct('L1', 1, 'L2', 0.8, 'm1', 1, 'm2', 0.5))
▶ 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.