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

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

[Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4


From: Rik
Subject: [Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4
Date: Wed, 1 Feb 2017 18:32:44 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #9, bug #50202 (project octave):

Per comment #8, that is the correct behavior, although someone could double
check in matlab.

When you do


x(idx) = val;


the equivalent pseudo-code is


x(1:idx-1) = NULL;
x(idx) = val;


where NULL is appropriate to whatever the underlying class is.  For doubles,
NULL is 0.0.  For logical types, NULL is 0 or false.



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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