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

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

[Octave-bug-tracker] [bug #31740] Empty assignement to empty index


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #31740] Empty assignement to empty index
Date: Tue, 23 Nov 2010 15:12:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11

URL:
  <http://savannah.gnu.org/bugs/?31740>

                 Summary: Empty assignement to empty index
                 Project: GNU Octave
            Submitted by: caliari
            Submitted on: Tue 23 Nov 2010 03:12:36 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.53
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Dear all,

the last line of the following code


x = 0;
ind = 1;
x(ind) = ones (1, 1);
ind = [];
x(ind) = [] % this works
x = 0;
ind = 1;
x(ind,1) = ones (1, 1);
ind = [];
x(ind,1) = []; % this does not works


give me "A null assignment can only have one non-colon index", but it should
be equivalent to the 5th line (and works in ml).

Best regards,

Marco




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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