>thermal</span> <span class="comment">% colormap</span>
cb = colorbar;
ylabel(cb,<span class="string">'sea surface temperature \circC'</span>)
</pre><img vspace="5" hspace="5" src="wmean_documentation_01.png" alt=""> <p>A beginner might try to get the average global sea surface temperature by taking the <i>unweighted</i> mean of all <tt>sst</tt> values:</p><pre class="codeinput">mean(sst,<span class="string">'all'</span>,<span class="string">'omitnan'</span>)
</pre><pre class="codeoutput">ans =
         13.