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_or_flows(celldata)
function orf = get_or_flows(celldata)
% GET_OR_FLOWS - extract on-ramp flow values from the array
%                of freeway cell data structures.
%
% Call:   orf = get_or_flows(celldata)
%
% Parameter:   celldata - array of freeway cell data structures.
%
% Returns:   orf - array of on-ramp flows.
%
% Last modified:   07/30/2006.

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

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

orf = [];

for i = 1:N
  orf = [orf celldata(i).ORflow];
end

return;

Contact us at files@mathworks.com