Traffic Control in GUI
Afficher commentaires plus anciens
Helo everyone,
I would like to help with Traffic Control in GUI. I'd like to program a basic crossroad, where cars are generated atuomatically at the beginning of the road. When a car comes to the traffic light, the object(car) decides whether it's green or red light. Object can move only straight, they doesn't have to turn. for a better understanding I attach a video of how it can work
6 commentaires
Rik
le 15 Mar 2020
This is a project with many steps. Which step is causing you problems?
Miroslav Jiránek
le 15 Mar 2020
Rik
le 16 Mar 2020
That is still a high level description. How did you try to create the crossing? How are you implementing a car?
Miroslav Jiránek
le 17 Mar 2020
Modifié(e) : Miroslav Jiránek
le 17 Mar 2020
Rik
le 17 Mar 2020
Do things step by step. How are you going to draw this in Matlab? You can make it from scratch, but you could also simply load the image. I would suggest having a separate image for a car, which you could rotate to have a car for the other road. If you then add the image of the car to an axes with the image function you can change the Position property to simulate the movement.
Miroslav Jiránek
le 18 Mar 2020
Modifié(e) : Miroslav Jiránek
le 19 Mar 2020
Réponses (0)
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
