[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39789] Error while indexing certain cell expr
From: |
Ben Kurtz |
Subject: |
[Octave-bug-tracker] [bug #39789] Error while indexing certain cell expressions |
Date: |
Sun, 25 Aug 2013 08:33:40 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 |
Follow-up Comment #2, bug #39789 (project octave):
Looks like the issue is with octave failing to allow the second level of
indexing in this case. In matlab:
>> c{1} = zeros(3,2);
>> c{1,1,1,1,1}(:,1)=1;
>> c{1}
ans =
1 0
1 0
1 0
in octave:
octave:1> c{1} = zeros(3,2);
octave:2> c{1,1,1}(:,1) = 1
error: a cs-list cannot be further indexed
error: assignment failed, or no method for 'cell = scalar'
octave:2> c{1,1}(:,2) = 2
c =
{
[1,1] =
0 2
0 2
0 2
}
octave:3> c{1,1,1,1,1}
ans =
0 2
0 2
0 2
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39789>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/