title: How do you set a custom default colormap in MATLAB?
body: <p>Someone <a href="https://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/62e6a544be818a82" rel="nofollow">asked this question elsewhere</a> and was told there was a 'hint' <a href="http://www.mathworks.com/help/techdoc/creating_plots/bqsxy_a-1.html#brdjjco-1" rel="nofollow">here</a>, but I'm quite new to MATLAB and don't see how to use that hint.</p>
  
  <p>I have a file <code>cmap.mat</code>. I load it and update the colormap as follows:</p>
  
  <pre><code>load cmap.mat;
  colormap(cmap);
  </code></pre>
  
  <p>But it only works for the current figure. I'd like all figures to use this colormap.</p>