[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value" |
Date: |
Fri, 23 Dec 2011 16:59:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0 |
Follow-up Comment #5, bug #35157 (project octave):
There will always be people who do not read or
understand error messages. But, the messages should be
made clearer, simpler, and more precise whenever possible.
In this case I agree that the error message was not clear,
and the suggested improvement was not much better.
Many users are not clear about what variables are predefined.
A simple improvement in this case would be to use the message
that you get for:
octave:1> a(1.23)=1
error: subscript indices must be either positive integers or logicals
octave:1>
instead of:
octave:1> a(j)=1
error: complex scalar type invalid as index value
error: assignment failed, or no method for `<unknown type> = scalar'
octave:1>
Note this case:
octave:1> a(e)=1
error: subscript indices must be either positive integers or logicals
octave:1>
It does not make sense to treat "e" differently from "i" or
"j".
Somewhat related to this, I tried to lookup what variables
are predefined in Octave. I could not find a Section in
the Manual that lists these, nor did searches of the pdf
find anything. Ideally, such a Section should be generated
from the current Octave code. And, a command ("predefined" ?)
would be useful.
Does anyone know where to start in the source files to find
them all?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35157>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Clem, 2011/12/22
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Jordi Gutiérrez Hermoso, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Jordi Gutiérrez Hermoso, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Clem, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Jordi Gutiérrez Hermoso, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value",
Michael Godfrey <=
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Michael Godfrey, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Jordi Gutiérrez Hermoso, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Michael Godfrey, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Jordi Gutiérrez Hermoso, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Michael Godfrey, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Michael Godfrey, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Michael Godfrey, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Rik, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Clem, 2011/12/23
- [Octave-bug-tracker] [bug #35157] Naive users baffled by "complex scalar type invalid as index value", Muhali, 2011/12/27