lass="comment">% modelexport2d(outfile,M,x,z,Coverage);</span>
0006 <span class="comment">% modelexport2d(outfile,M,x,z,[],1); % save by midpoint</span>
0007 
0008 error(nargchk(4,9,nargin));
0009 <span class="keyword">if</span> nargin&lt;8, isip=0; <span class="keyword">end</span>
0010 <span class="keyword">if</span> nargin&lt;7, xz=zeros(size(x)); <span class="keyword">end</span>
0011 <span class="keyword">if</span> nargin&lt;6, midp=0; <span class="keyword">end</span>
0012 <span class="keyword">if</span>