MATLAB: How to set colormap jet as a hard default in matlab (should stay for all figures even after restarting)

colormapdefaultjetMATLABrgb

all the figures I'm generating are shown in shades of blue/yellow instead of full rgb.
so far for each figure I have to set :
colormap jet
otherwise it goes back to "default".
for example, a 2d and 3d gaussian looks like that:
and 2d:
How can I have it automatically at rgb colors for all figures all the time (even after restarting MATLAB)?
thanks!

Best Answer

That is not possible in MATLAB. You could potentially set up a default colormap for the current session, and you could put instructions for that into startup.m so that it was processed most times that you started MATLAB. However, it is always possible to override or remove the startup.m file, so your requirement that the change be HARDWIRED cannot be met.