Hi John, you can try this for a) Boston as an example
BOS=[2.67 1.00 1.21 3.09 3.43 4.71 3.88 3.08 4.10 2.62 1.01 5.93];
t_bos = 0;
for i1 = 1:numel(BOS)
t_bos = t_bos + BOS(i1);
m_bos(i1) = t_bos;
end
m_bos

Hi John, you can try this for a) Boston as an example
BOS=[2.67 1.00 1.21 3.09 3.43 4.71 3.88 3.08 4.10 2.62 1.01 5.93];
t_bos = 0;
for i1 = 1:numel(BOS)
t_bos = t_bos + BOS(i1);
m_bos(i1) = t_bos;
end
m_bos
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!