schematic()

Visualization

schematic() is a MATLAB®-compatible visualization function for 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'. Run it online in your browser with SimLab — free, no install, no license required.

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 — run schematic() in your browser

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

Frequently Asked Questions about schematic()

Is the schematic() function free to use in SimLab?

The browser workspace requires no MATLAB® license or installation. Connected features require network access and may have account, tier, availability, or usage limits. You can open schematic() and 510+ other MATLAB®-compatible function references at simulations4all.com/simlab.

Do I need to install MATLAB to use schematic()?

No. SimLab’s core parser, workspace state, and most functions run locally in your browser. The schematic() function requires no MATLAB® license or desktop software download.

What does schematic() do?

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'. It is a MATLAB®-compatible visualization function available in SimLab with the same calling syntax as MATLAB® — typically: schematic('spring-mass-damper', struct('m', 2, 'c', 0.5, 'k', 10)).

Can I run schematic() in my browser?

Yes. Open SimLab at simulations4all.com/simlab, write or paste code that calls schematic(), and run it. This function’s calculation runs locally in the browser. SimLab session analytics, sharing, feedback, and eligible acceleration have separate network boundaries.

Try SimLab — MATLAB®-compatible, free, in your browser

510+ functions. Runs in your browser. No install. No license.

Open SimLab

MATLAB® is a registered trademark of The MathWorks, Inc. SimLab is an independent project by Simulations4All and is not affiliated with, endorsed by, or sponsored by The MathWorks, Inc.

Stay Updated

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