Code covered by the BSD License  

Highlights from
CTMSIM - an interactive freeway traffic macrosimulator

image thumbnail
from CTMSIM - an interactive freeway traffic macrosimulator by Alex Kurzhanskiy
Freeway traffic simulation based on Asymmetric Cell Transmission Model

get_fr_splitratios(celldata)
function frsr = get_fr_splitratios(celldata)
% GET_FR_SPLITRATIOS - extract off-ramp split ratio values from the array
%                      of freeway cell data structures.
%
% Call:   frsr = get_fr_splitratios(celldata)
%
% Parameter:   celldata - array of freeway cell data structures.
%
% Returns:   frsr - array of off-ramp split ratios.
%
% Last modified:   07/30/2006.

%
% Alex Kurzhanskiy   <akurzhan@eecs.berkeley.edu>
%

N  = size(celldata, 2);  % number of cells

frsr = [];

for i = 1:N
  frsr = [frsr celldata(i).FRbeta];
end

return;

Contact us at files@mathworks.com