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

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

[Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same size as I" not very informative
Date: Wed, 16 Sep 2015 12:40:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0

Follow-up Comment #2, bug #45957 (project octave):

I agree that more information would be better.

It might also be good to display the position of the index if possible.  For
example, something like this:


  x = ones (30, 20, 10);
  x(12,12,12)

==>
  error: A(I,J,...): index to dimension 3 out of bounds; value 12 out of bound
10


We already have a function, gripe_index_out_of_range, that does this.  Maybe
it just needs to be used in more places?

Also, I don't think that casting the index value to double is the right thing
to do.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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