[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set array values from 3 vectors
From: |
carbonmetrics |
Subject: |
Re: set array values from 3 vectors |
Date: |
Wed, 31 Aug 2011 08:45:13 -0700 (PDT) |
solved [thanks Przemek!].
for i=1:projects
canvas(i,startdate(i):enddate(i)) = values(i);
end
this produces an array in which the values are assigned to period between
startdate and enddate.
the solution is suitable for situations in which you have to sum something
[values: production,hours etc] per time increment [startdate-enddate: days,
weeks etc];
this occurs e.g. in production planning and project management.
Henk
--
View this message in context:
http://octave.1599824.n4.nabble.com/set-array-values-from-3-vectors-tp3778381p3781376.html
Sent from the Octave - General mailing list archive at Nabble.com.