GDIST

Display distance and azimuth between two points on a figure
1.3K Downloads
Updated 24 Oct 2008

View License

GDIST is a simple GUI to display x, y, distance and bearing for two points on a 2D figure. If no inputs are supplied, the information will be displayed on the current axis. To use the tool, simply type gdist at the command window when a figure is open. Click on the starting point, hold down the button and move the mouse to new location. Release the mouse when finished. The units displayed in the distance window are the same as the figure axis. The azimuth is reported in compass degrees (ie. geographic).

Example:

[X,Y,Z]=peaks(50);
figure
surf(X,Y,zeros(size(Z)),Z)
view(2)
gdist

Cite As

Andrew Stevens (2024). GDIST (https://www.mathworks.com/matlabcentral/fileexchange/21884-gdist), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0