checkbox

Core Math

Create a toggle checkbox widget. Returns 0 or 1.

Syntax

checkbox(label)
checkbox(label, default)

Examples

show_grid = checkbox('Show Grid', 1)
▶ Run
if checkbox('Enable damping'); c = 0.5; end
▶ 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.