help-octave
[Top][All Lists]
Advanced

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

Re: subtraction of vectors results in 0 [bug?]


From: Nicholas Jankowski
Subject: Re: subtraction of vectors results in 0 [bug?]
Date: Mon, 30 Nov 2015 10:02:20 -0500

On Mon, Nov 30, 2015 at 9:52 AM, Jonathan Camilleri <address@hidden> wrote:
sorry this was correct, somehow the vectors have the same value, but I still do not understand why the error is invalidating the subtraction.

 v = [0,0;0,0;0,0]
v =

   0   0
   0   0
   0   0

>> x-v
ans =

   1   0
   1   1
   2   4

>> x
x =

   1   0
   1   1
   2   4


What do you mean invalidating the subtraction?  since v is a zero matrix, x-v=x.  there should be no change to x....


reply via email to

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