上传者: u014611622
|
上传时间:2024/6/20 7:51:30
|
文件大小:2KB
|
文件类型:txt
matlab交通元胞自动机
function[CellSpace_nextstepVehicleSpace]=TrafficSimulating(SimTime,TimeStep,CellSpace_current,CellSpace_nextstep,VehicleSpace,VMAX)%TRAFFICSIMULATINGSummaryofthisfunctiongoeshere%仿真程序主体CellSpace_Init=CellSpace_nextstep;%读取信号配时数据SignalCycleMat=load('SignalCycleInfo.ini');sCycle=SignalCycleMat(1);%周期长度sGreenTime=SignalCycleMat(2);%绿灯时长sRedTime=SignalCycleMat(3);%红灯时长%%是否加载换道模型LaneChangingModelINIMat=load('LaneChangingModeInfo.ini');UseLaneChangingModelFlag=LaneChangingModelINIMat(1);end
本软件ID:7163353