From: Brendan on
Can anyone tell me how to get planets to actually "move" along their trajectory as particles in MATLAB?
I need to do this to simulate the hohmann transfer to mars, I want to have an actual movie..
I have solved the ODE for the motion of the planets (simple simple model!) but it just plots the trajectory as a normal graph, I was wondering can you get the planets to move?
Any help here would be great!
From: Saurabh Mahapatra on
My favorite recommendation(which is not the only way to do this) is the Solar system visualization demo that ships with Simulink 3D Animation.

See this on the web:

http://www.mathworks.com/products/3d-animation/demos.html?file=/products/demos/3d-animation/vr1/solar.html

If you have Simulink 3D Animation, try:

>>vrplanets

Though the example uses a Simulink model, you can still drive the same animation from MATLAB.

Thanks,

Saurabh
From: Brendan on
"Saurabh Mahapatra" <saurabh.mahapatra(a)mathworks.com> wrote in message <hlfjmo$kfr$1(a)fred.mathworks.com>...
> My favorite recommendation(which is not the only way to do this) is the Solar system visualization demo that ships with Simulink 3D Animation.
>
> See this on the web:
>
> http://www.mathworks.com/products/3d-animation/demos.html?file=/products/demos/3d-animation/vr1/solar.html
>
> If you have Simulink 3D Animation, try:
>
> >>vrplanets
>
> Though the example uses a Simulink model, you can still drive the same animation from MATLAB.
>
> Thanks,
>
> Saurabh

Thats fine Saurabh but Im trying to do the simulation myself you see, and only for a simple two body model of earth and mars..I basically want to get something similar to the simulation on youtube http://www.youtube.com/watch?v=uNdB3nmAl_0
I have the orbits plotted but need to animate them somehow..