[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51081] [] Square bracket concatenation of emp
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51081] [] Square bracket concatenation of empty cell and struct gives error |
Date: |
Sun, 21 May 2017 20:40:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Update of bug #51081 (project octave):
Priority: 5 - Normal => 3 - Low
Status: None => Confirmed
Release: 4.2.1 => dev
_______________________________________________________
Follow-up Comment #1:
Confirmed. This is also present on the development branch so I have changed
the Relase to "dev" for the report.
For clarity, this works:
vertcat ({}, struct('f',1))
horzcat ({}, struct('f',1))
However, at the interpreter level only vertical concatenation works.
[ {} ; struct('f',1) ] % works
[ {} , struct('f',1) ] % fails
error: octave_base_value::cell_value(): wrong type argument 'scalar struct'
Note that it is a problem for cell concatenation. With an emptry matrix it
works.
[ [] , struct('f',1) ] % works
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51081>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/