octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug when dividing a scalar by a vector?


From: Sebastian Schöps
Subject: Bug when dividing a scalar by a vector?
Date: Thu, 12 Jan 2017 07:08:59 -0800 (PST)

While  "1/[1 1 1 1]" does not work in Octave nor Matlab "1/[1;1;1;1]" does
work in both. However, they disagree. Octave thinks 

   0.25000   0.25000   0.25000   0.25000

but Matlab says

     1     0     0     0

Is that a bug? What would one expect?

Sebastian




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Bug-when-dividing-a-scalar-by-a-vector-tp4681411.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]