File Exchange

image thumbnail

cmap2pal - Convert matlab colormap to binary .pal format

version (2.3 KB) by

Convert Matlab colormaps to binary .pal format



View License

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.

Comments and Ratings (4)


mb9891 (view profile)

Works perfectly. Thank you!

John Jamison

Doesn't work. Says Line 69 has not enough input arguments. No instructions.

M. A.

M. A. (view profile)

Very useful script!

Great job!

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video