[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 17:58:46 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 |
URL:
<http://savannah.gnu.org/bugs/?47526>
Summary: set with mixed struct and property-value-pairs
errors
Project: GNU Octave
Submitted by: mmuetzel
Submitted on: Do 24 Mär 2016 17:58:45 GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.1-rc1
Operating System: Any
_______________________________________________________
Details:
When setting properties, they can be passed as structures or as property value
pairs. While setting the properties in either the one or the other form works,
it fails when both are mixed:
[x,y,z] = meshgrid (-2:0.5:2, -2:0.5:2, -2:0.5:2);
val = x.^2 + y.^2 + z.^2;
fv = isosurface (x, y, z, val, 1);
h_patch = patch ();
set (h_patch, fv) % works fine
set (h_patch, "FaceColor", "g") % works fine
set (h_patch, fv, "FaceColor", "g")
The last line throws the error:
error: set: invalid number of arguments
Attached please find a patch fixing this error.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Do 24 Mär 2016 17:58:45 GMT Name: set_struct_pv.patch Size: 2kB By:
mmuetzel
<http://savannah.gnu.org/bugs/download.php?file_id=36752>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47526>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors,
Markus Mützel <=
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, Rik, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, John W. Eaton, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, John W. Eaton, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, Markus Mützel, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, Rik, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, Markus Mützel, 2016/03/24
- [Octave-bug-tracker] [bug #47526] set with mixed struct and property-value-pairs errors, Rik, 2016/03/26