|
From: | Dan Sebald |
Subject: | [Octave-bug-tracker] [bug #51633] Empty indexing of struct returns empty struct array |
Date: | Mon, 31 Jul 2017 16:33:58 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, bug #51633 (project octave): I'm not following what is meant by "For Matlab it is equivalent to a(1)". "a()" in Octave is the same as "a(1)" in Matlab? Is the following what you mean? octave:40> a = struct ('f', 1); octave:41> b = a() b = 0x0 struct array containing the fields: f octave:42> b.f = 3 error: invalid assignment to cs-list outside multiple assignment octave:42> b(1).f = 3 b = scalar structure containing the fields: f = 3 octave:43> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51633> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |