Publisher review:apply - Apply a function looping over a dimension of a matrix This function should help when it is difficult to generalize a function to operate on all dimensions.Examples--------Take the eig of each page in the 3rd dimensionb = apply(@eig,rand(4,4,3),3,'uni',0)Normalize each columnb = apply(@norm, rand(5,3), 2)Normalize each rowb = apply(@norm, rand(5,3), 1)This is a work in progress. As time permits I will add error checking and documentation. Requirements: ยท MATLAB Release: R2007a
apply is a Matlab script for Development Tools scripts design by Stephen Lienhard.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris