[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51633] Empty indexing of struct returns empty
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #51633] Empty indexing of struct returns empty struct array |
Date: |
Wed, 2 Aug 2017 14:31:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #8, bug #51633 (project octave):
for reference, Matlab 2017 output for Dan's comment #6:
>> a = 1:10;
>> a()
ans =
1 2 3 4 5 6 7 8 9 10
>> b(1) = struct('x',1:10)
b =
struct with fields:
x: [1 2 3 4 5 6 7 8 9 10]
>> b(2) = struct('x',1:10)
b =
1×2 struct array with fields:
x
>> b
b =
1×2 struct array with fields:
x
>> b()
ans =
1×2 struct array with fields:
x
>> b(1)
ans =
struct with fields:
x: [1 2 3 4 5 6 7 8 9 10]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51633>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/