How do i plot big bang?

1 view (last 30 days)
Simon Sandberg
Simon Sandberg on 27 Sep 2016
Answered: Michael Abboud on 29 Sep 2016
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 Comment
José-Luis on 27 Sep 2016
Edited: José-Luis on 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.

Sign in to comment.

Answers (1)

Michael Abboud
Michael Abboud on 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.


Find more on Animation 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!