title: Plotting global sea surface temperatures on MATLAB
body: <p>I am trying to plot global sea surface temperatures for April 2015 on MATLAB using <a href="http://ds.data.jma.go.jp/tcc/tcc/products/elnino/cobesst/cobe-sst.html" rel="nofollow">JMA's dataset in GRiB format</a>. I have also installed the nctoolbox and m_map toolboxes. </p>
  
  <p>Below is my code: </p>
  
  <pre><code>!wget http://ds.data.jma.go.jp/tcc/tcc/products/elnino/cobesst/gpvdata/2010-2019/sst201504.grb
  nc=ncgeodataset('sst201504.grb')
  nc.variables %to check the variable names in this file
  lat=double('lat');
  lon=double('lon');
  sst=double(squeeze('Water_temperature_depth_below_sea'));
  m_proj('miller','lat',[min(lat(:)) max(lat(:))],...'lon',[min(lon(:)) max(lon(:))])
  m_pcolor(lon,lat,sst);
  </code></pre>
  
  <p>However, when I used the m-pcolor function, the following error message is generated:</p>
  
  <pre><code>Error using pcolor (line 53)
  Color data input must be a matrix.
  
  Error in m_pcolor (line 53)
  [h]=pcolor(X,Y,data,varargin{:});
  </code></pre>
  
  <p>I am still able to plot the coastline and gridlines using the following code though, but without the coloured temperature anomalies:</p>
  
  <pre><code>m_coast;
  m_grid;
  </code></pre>
  
  <p>Did I miss out anything in my code? <code>lat</code> and <code>lon</code> are <strong>1x3</strong> double arrays, while <code>sst</code> is a <strong>1x33</strong> double array. </p>