trated nonetheless. For example, we can interpolate the z data from the sample flight.  If everything is in terms of path distance as the independent variable, use <a href="pathdistps_documentation.html"><tt>pathdistps</tt></a> to interpolate to</p><pre class="codeinput">d = pathdistps(lat,lon);
di = pathdistps(lati,loni);
zi = interp1(d,z,di);

figure
plot(d,z,<span class="string">'ko'</span>)
hold <span class="string">on</span>
plot(di,zi,<span class="string">'b.-'</span>)
</pre><img vspace="5" hspace="5"