How do i plot big bang?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I need to illustrate Big Bang by creating an animation. So this is what the assignment tells me: Let a bunch of spherical objects, with different masses, be located in a single point and let them effect each other with a constant that is a random(to size and direction) force under a small period. It will make the objects accelerate from the start position in different directions. Then only gravitational forces can act upon the bodies and pull them towards each other. When two bodies collide they will merge and become a new object with the total mass and a new velocity. Plot the objects as circles with an area proportional to the mass.
Appreciate any help since I have no idea of how to approach this assignment, thanks!
1 commentaire
José-Luis
le 27 Sep 2016
Modifié(e) : José-Luis
le 28 Sep 2016
What's your experience programming?
I would start writing pseudo-code, listing the steps you need to go through (divide the job in smaller tasks) and try to code each step.
Just copy/pasting your problem doesn't really motivate contributors to help you. It is better to ask specific questions.
Réponses (1)
Michael Abboud
le 29 Sep 2016
That sounds like an interesting assignment! The question however is a bit vague, and as commented above, it is usually better to identify specific questions the community can help you with.
As you need to animate your graphics, I would suggest you start by reading through the following animation example in the documentation, and hopefully this will give you some idea of how to proceed. I have also linked below a page which more generally describes how animation works in MATLAB.
0 commentaires
Voir également
Catégories
En savoir plus sur Animation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!