bar3

Plotting

3D bar chart. Z is a 2D matrix where each element becomes a bar positioned at (row, col) with height Z(row, col). Rendered using Plotly 3D scatter markers.

Syntax

bar3(Z)

Examples

bar3([1, 2, 3; 4, 5, 6; 7, 8, 9])
▶ Run
bar3(magic(4))
▶ 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.