FUNCTION REFERENCE

compose

Format each row using successive data columns.

Format each row using successive data columns.

Syntax

s = compose(format,values,...)

For one data array, each format consumes successive columns across a row; a single conversion retains the input shape. Data columns must be a multiple of the format input count. Inputs expand along singleton axes; format syntax follows sprintf. A char format returns cellstr; a string format returns strings.

Example

compose("x=%d",[1 2])

Differences from MATLAB: bounded 2-D string storage (65536 elements, 2 MiB text); MAT persistence and N-D strings are not implemented.

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