[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57329] index error for every command, after t
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #57329] index error for every command, after textscan and variable editor inspection |
Date: |
Thu, 5 Dec 2019 02:12:15 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #2, bug #57329 (project octave):
Don't be. cat merely prints the content of a file and is unrelated to Octave.
My machines have
Octave 5.1.0 on Fedora Linux
Octave 4.4.1 on Debian GNU/Linux
I still see the errors with your commands (thanks for mentioning verbatim):
>> bug57329 = "1, 1, 1, 1, 1, 1, 1\n1, 1, 1, 1, 1, 1, 1"
bug57329 = 1, 1, 1, 1, 1, 1, 1
1, 1, 1, 1, 1, 1, 1
>> textscan(bug57329, "%s,%d,%d,%d,%d,%d,%d", 'delimiter', ',')
ans =
{
[1,1] =
{
[1,1] = 1
[2,1] = 1
}
[1,2] =
1
1
[1,3] =
1
1
[1,4] =
1
1
[1,5] =
1
1
[1,6] =
1
1
[1,7] =
1
1
}
>> ans
ans =
{
[1,1] =
{
[1,1] = 1
[2,1] = 1
}
[1,2] =
1
1
[1,3] =
1
1
[1,4] =
1
1
[1,5] =
1
1
[1,6] =
1
1
[1,7] =
1
1
}
>> # Then I opened ans in VE, then ans's second cell. Now, I'll press Enter
twice.
>>
>> error: int32 matrix cannot be indexed with {
ans
ans =
1
1
>> error: int32 matrix cannot be indexed with {
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57329>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/