FUNCTION REFERENCE

width

Number of variables of a table, or columns of an array.

Number of variables of a table, or columns of an array.

Syntax

n = width(T)

Example

n = width(table([1; 2], [3; 4]))   % 2

Differences from MATLAB: None known.

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