How to graph an Oval on a geographical Map

조회 수: 5 (최근 30일)
Aidan O'Neill
Aidan O'Neill 2022년 12월 1일
답변: Muskan 2023년 3월 20일
BLUF: I'm trying to graph an oval on a matlab map using something like geoscatter.
I have data for 6 points, each of these points has a latitude and longitude with each of these having a standard deviation (in miles) associated with them.
Also, the standard deviations are in units of miles also.
I may not be explaining it well enough but I am lost on how to proceed here.

답변 (1개)

Muskan
Muskan 2023년 3월 20일
Hi Aiden,
As per my understanding, you can use ellipse1 function to get geographic ellipse from center, semimajor axis and eccentricity. One of the syntaxes is:
[lat,lon] = ellipse1(lat0,lon0,ellipse)
Using this you can plot the map and the oval using the “geoshow function.
So, based on the provided parameters, the “ellipse1” function calculates the latitude and the longitude of the oval. Finally, the map and oval are plotted in the same figure using the “geoshow” function.
You may have a look at the following MATLAB documentation pages for reference:
I hope the above information will be helpful in resolving your query.
Cheers,
Muskan

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by