MATLAB: How to reverse colormap in contourfm

mappingMapping ToolboxMATLAB

I'd like to use the reverse of jet colormap in contourfm. contourfm seems to only accept standard string values for predefined colormaps.

Best Answer

?? MATLAB's contourfm does not have a colormap argument at all, let alone a string.
If you want to reverse the colormap, just do it:
colormap(flipud(jet))