function cubemaximum
Returns the maximum of each pixel along the 3rd axis if X is a cube.
Syntax
result = cubemaximum(X)
Arguments
X: | A matrix or a FITS file name. If a FITS file name is given, only one image is read into memory at a time thus saving memory. |