From: Peter Smith on 29 Jul 2010 14:39 Hi i have proceeded as follows, matching a timeList to minutes of the days; tmpIdx = find(timeList == thisMinuteOfDay); should return (in tmpIdx) the element of timeList that corresponds to this particular minute of the day. . Note that sometimes tmpIdx will be empty as the minute of day for the current observation won't be a member of timeList. For example, because timeList starts at the minute of day corresponding to 8:06, if the current row of data is for time 8:02, you won't be able to find thisMinuteOfday in timeList. i want to do the following; If tmpIdx is empty then ignore the current row. I know this can be done with an if statement but how?
From: Walter Roberson on 29 Jul 2010 14:57 Peter Smith wrote: > i want to do the following; > If tmpIdx is empty then ignore the current row. > > I know this can be done with an if statement but how? if isempty(tmpIdx); continue; end
From: Peter Smith on 29 Jul 2010 15:30 Walter Roberson <roberson(a)hushmail.com> wrote in message <i2sj6t$3lp$2(a)canopus.cc.umanitoba.ca>... > Peter Smith wrote: > > > i want to do the following; > > If tmpIdx is empty then ignore the current row. > > > > I know this can be done with an if statement but how? > > if isempty(tmpIdx); continue; end Thanks Walter
|
Pages: 1 Prev: Weird OOP memory usage Next: Save and control figure size with print |