octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #33853] Incorrect element-wise vector multipli


From: Kai Habel
Subject: [Octave-bug-tracker] [bug #33853] Incorrect element-wise vector multiplication, with an unnamed vector
Date: Mon, 25 Jul 2011 09:24:08 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

Update of bug #33853 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Please have look at the operator precedence. 

.* has a higher priority than the colon operator

so you actually computing (last example):

([1 0 0] .* 1):3

By the way matlab gives the same result:

>> [1 0 0] .* 1:3

ans =

     1     2     3

>> [1 0 0] .* (1:3)

ans =

     1     0     0



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33853>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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