Strange behavior of sum
Douglas Jiménez
dougjim at gmail.com
Mon Dec 8 20:35:22 CST 2008
¡Greetings!
First at all you have to forgive my bad english. Thank you.
After a period of correct behavior 'sum' begins to make some strange things.
For example:
octave:11> mu=rand(3,3)
mu =
0.39068 0.20550 0.22666
0.12383 0.95872 0.38691
0.97295 0.18831 0.89087
octave:13> sum(mu(:,1))
octave:13>error: expecting integer index, found 0.390682
octave:17> a=[1 2 3]
a =
1 2 3
octave:19> sum(a)
ans =
0 0 0
octave:21> a=[1;2;3]
a =
1
2
3
octave:23> sum(a)
ans =
0 0 0
I work with Ubuntu 8.10.
Thanks in advance.
Douglas Jimenez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20081209/01cff1cf/attachment.html
More information about the Bug-octave
mailing list