Plot lat longs on a Map from Simulink during rum time
显示 更早的评论
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
2017-10-27
0 个投票
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
类别
在 帮助中心 和 File Exchange 中查找有关 Geographic Coordinate Reference Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!