FUNCTION REFERENCE

full

Return a full array.

Return a full array.

Syntax

full(A)

A sparse array becomes the full array with the same values; a logical sparse array stays logical. Already-full numeric, logical and character arrays are returned with the same shape, class and shared storage. Cells and structs are rejected.

Example

full(sparse([1 0; 0 2]))   % [1 0; 0 2]

Example

full([1 2 3])   % [1 2 3]

Differences from MATLAB: A sparse array with more than 16777216 elements cannot be converted to full yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.