Navigation

Operators and Keywords

Function List:

C++ API

: bsxfun (f, A, B)

The binary singleton expansion function performs broadcasting, that is, it applies a binary function f element-by-element to two array arguments A and B, and expands as necessary singleton dimensions in either input argument.

f is a function handle, inline function, or string containing the name of the function to evaluate. The function f must be capable of accepting two column-vector arguments of equal length, or one column vector argument and a scalar.

The dimensions of A and B must be equal or singleton. The singleton dimensions of the arrays will be expanded to the same dimensionality as the other array.

See also: arrayfun, cellfun.

Package: octave