Converts standard Matlab colormaps (nx3 RGB tuples) to the binary .pal format allowing import to other graphing software packages (e.g Origin).
Syntax:
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.
Marcelo Alcocer (2021). cmap2pal - Convert matlab colormap to binary .pal format (https://www.mathworks.com/matlabcentral/fileexchange/43114-cmap2pal-convert-matlab-colormap-to-binary-pal-format), MATLAB Central File Exchange. Retrieved .
Inspired by: Color Palette Tables (.cpt) for Matlab
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Works. You should not run it in Editor. Just type "cmap2pal("file_name")" in your command window.
I can confirm this still work for me on R2019b
Doesn't work. Says Line 69 has not enough input arguments. No instructions.
Exactly what I needed, thanks
Good job!
excellent!
Works perfectly. Thank you!
Doesn't work. Says Line 69 has not enough input arguments. No instructions.
Very useful script!
Great job!