class="string">'int16'</span>);
0056     unit = fread(fid, 1, <span class="string">'int16'</span>);
0057     nwf = fread(fid, 1, <span class="string">'int16'</span>);
0058     nwords = fread(fid, 1, <span class="string">'int16'</span>);
0059     toread = nwords;
0060     <span class="keyword">if</span> toread &gt; 0
0061       wf = fread(fid, toread, <span class="string">'int16'</span>);
0062     <span class="keyword">end</span>
0063        <span class="keyword">if</span> type == 1
0064          <span class