Z = bsxfun(Func,X,Y)
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.
Z [ tseries ] - Result of Func(X,Y) with X and/or Y expanded properly in singleton dimensions.See help on built-in bsxfun for more help.
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));