I want to write a program which shows a visual animation of the orbit of satellite in 3D space, with the Earth’s rotation.
I can write a code which shows a visualisation of the orbit (simply comet3()). It is possible to rotate the 3D model of the Earth either.
But I can’t merge these two programs.
I’ve seen some Youtube videos like “Satellite Orbit Analysis and Simulation (in MATLAB)”. How has he done it?
Is there any special stackexchange site for Matlab questions?
You can see a demo how to draw the Earth in 3D or 2D here:
Earth’s Topography
To rotate an object like surface you can use function ROTATE. For example:
In addition have a look at Orbit Determination Toolbox (ODTBX).
And yeh, the best MATLAB SE site is here at SO. Just add or search for matlab tag.
UPDATE: Another beautiful Earth plot at FileExchange: http://www.mathworks.com/matlabcentral/fileexchange/25048