Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 430 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 430 Bytes

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;