[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" c
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error |
Date: |
Wed, 17 Jan 2018 03:34:06 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #14, bug #52904 (project octave):
This is in Matlab R2016a:
>> h = line ([0 1], [0 1], 'createfcn', @() error ('fail to create'))
Error using @()error('fail to create')
Too many input arguments.
Error while evaluating Line CreateFcn
h =
Line with properties:
Color: [0 0.4470 0.7410]
LineStyle: '-'
LineWidth: 0.5000
Marker: 'none'
MarkerSize: 6
MarkerFaceColor: 'none'
XData: [0 1]
YData: [0 1]
ZData: [1x0 double]
Show all properties
>> ishghandle(h)
ans =
1
The line is created even if the CreateFcn fails.
There seems to be another difference with respect to Octave. If I want the
error message to appear, the anonymous function has to be changed (note the
additional varargin):
>> h = line ([0 1], [0 1], 'createfcn', @(varargin) error ('fail to create'))
Error using @(varargin)error('fail to create')
fail to create
Error while evaluating Line CreateFcn
h =
Line with properties:
Color: [0 0.4470 0.7410]
LineStyle: '-'
LineWidth: 0.5000
Marker: 'none'
MarkerSize: 6
MarkerFaceColor: 'none'
XData: [0 1]
YData: [0 1]
ZData: [1x0 double]
Show all properties
But that is a different compatibility issue. With respect to this bug here,
both behave the same.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52904>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, (continued)
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Dan Sebald, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Rik, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Markus Mützel, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Rik, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Markus Mützel, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Dan Sebald, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Rik, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Dan Sebald, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Rik, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Dan Sebald, 2018/01/16
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error,
Markus Mützel <=
- [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error, Rik, 2018/01/17