IRIS Toolbox Reference Manual

## bsxfunc

Standard BSXFUN implemented for tseries objects

#### Syntax

    Z = bsxfun(Func,X,Y)

#### Input arguments

- `Func` [ function_handle ] - Function that will be applied to the input series, `FUN(X,Y)`.

- `X` [ tseries | numeric ] - Input time series or numeric array.

- `Y` [ tseries | numeric ] - Input time series or numeric array.

#### Output arguments

- `Z` [ tseries ] - Result of `Func(X,Y)` with `X` and/or `Y` expanded properly in singleton dimensions.

#### Description

See help on built-in `bsxfun` for more help.

#### Example

We create a multivariate time series and subtract mean from its individual columns.

    x = tseries(1:10,rand(10,4));
    xx = bsxfun(@minus,x,mean(x));

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.