full

Core Math

Convert a sparse matrix back to a full/dense matrix. If input is already full, returns it unchanged.

Syntax

full(S)

Examples

S = sparse([1, 0; 0, 2])
▶ Run
full(S)
▶ 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.