Am Donnerstag, 28. April 2011, 23:50:28 schrieb Carnë Draug:
> On 28 April 2011 22:42, Muhali <muh...@shaw.ca> wrote:
> >> octave-3.2.4:11>  b = [2 5 NaN 7];
> >> octave-3.2.4:13>  cumsum(b)
> >> ans =
> >> 
> >>       2     7   NaN   NaN
> > 
> > I would expect it to do
> > 
> > octave:> nancumsum(b)
> > 
> > 2   7   7  14

Is this really worth an extra function? It is easily done with

b(isnan(b)) = 0;
cumsum(b)

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to