IRIS Toolbox Reference Manual

bsxfunc

Standard BSXFUN implemented for tseries objects

Syntax

Z = bsxfun(Func,X,Y)

Input arguments

Output arguments

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));