</span>
0138 <span class="comment">% time = 0:1:31.;</span>
0139 nTimes = numel(time);
0140 
0141 nSiglev = nSiglay + 1;
0142 
0143 <span class="comment">% Create or process the temperature and salinity arrays.</span>
0144 <span class="keyword">if</span> max(size(in_temp)) == 1
0145     inc = 1/real(nSiglay);
0146     siglev = 0:-inc:-1;
0147     siglay = nan(1, nSiglay);
0148     <span class="keyword">for</span> i=1:nSiglay
0149         siglay(i) = mean(siglev(i:i+1));
0150     <span class="keyword">end</s