FUNCTION REFERENCE

head

First rows of a table or array.

First rows of a table or array.

Syntax

B = head(T)

Syntax

B = head(T, k)

k defaults to 8 and is cut to the height.

Example

B = head(table((1:10)'), 3)   % rows 1 to 3

Example

B = head(magic(4), 2)   % [16 2 3 13; 5 11 10 8]

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.