Writing a matlab script
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
TiffanyLC
am 20 Jan. 2015
Beantwortet: Image Analyst
am 20 Jan. 2015
When shopping with a partner, problems arise when you inadvertently separate. Logical minds naturally ponder the most efficient way to re-connect. Should one partner stay put while the other searches, or should both randomly wander about the store until they meet again?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Jan. 2015
I think they should call each other's mobile phones. But I think you should write a Monte Carlo simulation and try it both ways to see which is faster. Use the rand() function and stop the look when the distance between them is less than some distance. Use rand() to define two starting positions in a region that is bounded - a rectangular box. Don't let new locations leave the box - reflect them off the wall.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Monte-Carlo finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!