필터 지우기
필터 지우기

How can I show the latitude and longitude of the earthquake locations on the map in the app designer?

조회 수: 12 (최근 30일)
I want to show the latitude and longitude of the instant earthquake locations in the app designer. However, I get an error in the code I wrote with geoplot and geoaxes. How can I solve this problem?
gx = geoaxes(app.UIAxes5);
geoplot(gx,quakeTable.Lat(:,:),quakeTable.Lon(:,:),'r*')
geobasemap 'colorterrain'
This is the code I wrote. But in the geoaxes section I get the following error:
Error using geoaxes (line 53)
Expected parent to be one of these types:
matlab.ui.Figure, matlab.ui.container.Panel, matlab.ui.container.Tab
Instead its type was matlab.ui.control.UIAxes.
Or, unlike this, how can I create an earthquake map instantly, does anyone know?

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 5월 20일
I think this documentation page contains the information you are looking for. You can find additional properties for geographic axes here.
gx = geoaxes(app.UIFigure);
gx.Position = [0.1300 0.6100 0.450 0.250];
geoscatter(gx,lat_data,lon_data)
  댓글 수: 13
Cris LaPierre
Cris LaPierre 2020년 5월 22일
편집: Cris LaPierre 2020년 5월 25일
Sorry, but I couldn't identify a good way to do that in app designer on a geographic axes in 18b.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Earthquake Engineering에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by