資源簡介
本程序根據(jù)1992年Nagel和Schreckenberg發(fā)表的交通流論文,利用matlab編寫。采用周期性邊界條件,希望有所幫助
代碼片段和文件信息
classdef?car ????properties
????????x
????????v
????????qianche
????????flag
????end
????properties(Dependent)
????????dis
????end
????methods
????????function?dis?=?get.dis(obj)
????????????if?obj.flag?==?0
????????????????dis?=?obj.qianche.x?-?obj.x;
????????????else
????????????????dis?=?100?+?obj.qianche.x?-?obj.x;
????????????end
????????end
????end
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1930??2015-10-26?20:58??yuanbaozidongji.m
?????文件?????????386??2015-10-26?13:59??car.m
評論
共有 條評論