8.2.63 vecfun

Function: out = vecfun (fcn, x, dim)

Apply function to vectors in array along arbitrary dimension.

This function is not implemented yet.

Applies a given function to the vector slices of an N-dimensional array, where those slices are along a given dimension.

fcn is a function handle to apply.

x is an array of arbitrary type which is to be sliced and passed in to fcn.

dim is the dimension along which the vector slices lay.

Returns the collected output of the fcn calls, which will be the same size as x, but not necessarily the same type.