Help with a code writing

10 views (last 30 days)
PS
PS on 27 Mar 2020
Commented: PS on 27 Mar 2020
I want to create a code that simulates multiple particles coliding with the walls of a box but I dont want the particles to colide with each other.
I alredy made a script for one particle, but Im having trouble making one for multiple ones.
Can someone help me please?
  6 Comments
darova
darova on 27 Mar 2020
I can't run your script. I have some errors. Do you have errors?
PS
PS on 27 Mar 2020
yes I have.If you take the cicle for and the i's on deltat you should see the animation with one particle.

Sign in to comment.

Answers (0)

Categories

Find more on Get Started with MATLAB 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!