Skip to content

ericsun95/Traffic-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simulation on the traffic light control

run it in the terminal under the path to C_program:

>> gcc main.c matrix.c gap.c trafficlight.c 

>> ./a.out (For Mac)

>> a.exe (For Windows)

run the results in the matlab for analysis and visualization:

change the path to the place where you store the txt, change the last three parameters in the running.m, then run it with the command line:

>> running;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published