MATLAB: Convert to an X Y coordinate System

geographical coordinateslatlonplaner coordinates

I have seen that geographical coordinates in (latitude, longitude) format can be converted to XY coordinates using Mathlab equal area function [x,y]=grn2equ(lat, lon)
Is there a similar function that converts lat, lon coordinates to equal distance xy coordinate system?
(Basically what I want to do is to convert a set of points (lat, lon)to plane X y coordinates and do some distance calculations on them. Further, these lat, lon coordinates refers to WGS84)

Best Answer

This File Exchange submission may help: Spherical to Azimuthal Equidistant