<pre class="codeinput">D = load(<span class="string">'samplegrid.mat'</span>);
lat = D.lat(4000:10:5000);
lon = D.lon(4000:10:5000);
z = D.z(4000:10:5000);

<span class="comment">% And perhaps there's some missing data:</span>
lat([10 20:25 60:65 80:82]) = [];
lon([10 20:25 60:65 80:82]) = [];
z([10 20:25 60:65 80:82]) = [];

plotps(lat,lon,<span class="string">'ko-'</span>)
</pre><img vspace="5" hspace="5" src="pspath_documentation_01.png" alt=""> <p>That flight line is not spaced very evenly.  Perhaps you