Plot lat longs on a Map from Simulink during rum time

2 visualizaciones (últimos 30 días)
Ash1992
Ash1992 el 24 de Oct. de 2017
Respondida: Julia Antoniou el 27 de Oct. de 2017
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

Respuestas (1)

Julia Antoniou
Julia Antoniou el 27 de Oct. de 2017
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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by