Converts standard Matlab colormaps (nx3 RGB tuples) to the binary .pal format allowing import to other graphing software packages (e.g Origin).
CMAP2PAL(cmap) converts the Matlab colormap cmap into binary .pal format. cmap must be an nx3 array of RGB values between 0 and 1. The output file destination is selected via a GUI.
CMAP2PAL(cmap,path) saves the .pal file to the destination specified by path.
Inspired by: Color Palette Tables (.cpt) for Matlab