Globe Display on MATLAB?
Show older comments
I am working with the Globe Display on MATLAB, Here it is: http://www.mathworks.com/help/map/working-with-the-globe-display.html#brblv3k.
2 Questions:
- How do I make the globe keep spinning (it is only spinning for one revolution then stops.)
- Second, how do I add a ground-track for a satellite as seen here: https://www.youtube.com/watch?v=44vzI2udcRU (Skip to 3:20). I have a globe and it spins but only once and I have a ground track (with no map in the back ground and no motion) MATLAB just spits out the graph.
How can I make a simulation like the video? but start with the ground track and multiple revolutions.
Answers (1)
Chad Greene
on 30 Nov 2015
Hi Jonathan,
1. You should be able to increase the number of revolutions by increasing the angle of revolution to more than 360. For example, the globe documentation page gives an example where you make the globe spin like this:
for theta=360:-5:0
view(theta,23.5); % Earth's axis tilts by 23.5 degrees
drawnow
end
Try it using theta = 10*360:-5:0 for ten revolutions.
2. For the satellite track, use plot3m. You might consider a thin lightly colored line that does not change for the ground track, but then also plot a red circle or something with plot3m every frame (and delete the previous red circle each time).
Categories
Find more on Mapping Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!