arrayfun , cellfun , spfun , structfun and bsxfun are some useful mapping functions in MATLAB. For example ...
stackoverflow.com