필터 지우기
필터 지우기

Plot lat longs on a Map from Simulink during rum time

조회 수: 1 (최근 30일)
Ash1992
Ash1992 2017년 10월 24일
답변: Julia Antoniou 2017년 10월 27일
Hello ,
Is there any way to plot (Lat and longs on some sort of Map (or) Google Earth ) directly from Simulink during run time.
I am getting lat longs from my model which i need to visualize on a map during run time. Is this possible ? I am under assumption that the simulation engine is fast and MAP cannot cope up with it untill unless someone has a workaround for it.
Thanks

답변 (1개)

Julia Antoniou
Julia Antoniou 2017년 10월 27일
I would recommend creating your plot using written MATLAB code in a MATLAB Function block. This way, you can create and update your plot in MATLAB while your Simulink model is running.
To update the same figure with each execution of the MATLAB Function block during the simulation, use the commands "drawnow" and "hold on" as part of your function.
The Mapping Toolbox could also be useful for this case. The link below shows an example of plotting latitudes and longitudes on a map using the Mapping Toolbox. https://www.mathworks.com/help/map/examples/creating-map-displays-with-latitude-and-longitude-data.html

카테고리

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