FUNCTION REFERENCE

deal

Copy inputs to outputs.

Copy inputs to outputs.

Syntax

[A, B, ...] = deal(X)

Syntax

[A, B, ...] = deal(X1, X2, ...)

With one input every output gets a copy of it; otherwise the number of inputs

must equal the number of outputs and each output gets its input.

Example

[a, b] = deal(1, 2); [a b]   % [1 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.