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

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

[Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value"
Date: Fri, 30 Dec 2011 04:45:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Sunhog/3.6.13

Follow-up Comment #16, bug #35157 (project octave):

How about the attached patch? With I get the following:


octave:1> x = rand(2)
x =

   0.14818   0.29744
   0.54033   0.76772

octave:2> x(i)
error: attempted to use a complex scalar as an index
       (forgot to initialize i or j?)
octave:2> x(1+i)
error: attempted to use a complex scalar as an index
       (forgot to initialize i or j?)


(file #24712)
    _______________________________________________________

Additional Item Attachment:

File name: clx-idx.patch                  Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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