Home > freetb4matlab > mapping > distance.m

distance

PURPOSE ^

%

SYNOPSIS ^

function dist = distance(pt1, pt2)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} @var{dist} = distance(@var{pt1}, @var{pt2})
%
% Calculates the distance (in degrees) between @var{pt1} and @var{pt2}.
%
% @var{pt1} and @var{pt2} are two-column matrices of the form [latitude longitude].
%
% @example
% >> distance([37,-76], [37,-9]) 
% ans = 52.309
% >> distance([37,-76], [67,-76])
% ans = 30.000
% @end example
%
% @seealso{azimuth,elevation}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003