octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47526] set with mixed struct and property-val


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors
Date: Thu, 24 Mar 2016 20:19:41 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #3, bug #47526 (project octave):

A quick check in Matlab showed that the structs and property value pairs can
be freely mixed. The following example works correctly:

set (h, prop1, value1, struct1, struct2, prop2, value2, struct3)



As to mapping an array of structs to an array of handles: The following
example turns all patches to blue:

figure
h_patch(1) = patch ();
figure
h_patch(2) = patch ();
figure
h_patch(3) = patch ();

pv(1).facecolor = 'r';
pv(2).facecolor = 'g';
pv(3).facecolor = 'b';

set (h_patch, pv)




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47526>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]