[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33808] nargchk should return empty matrix if
From: |
Volkmar Glauche |
Subject: |
[Octave-bug-tracker] [bug #33808] nargchk should return empty matrix if inputs are within range |
Date: |
Mon, 25 Jul 2011 09:36:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Follow-up Comment #2, bug #33808 (project octave):
I still seem to get a non-empty struct:
octave:1> s=nargchk(1,5,4,'struct')
s =
scalar structure containing the fields:
message =
identifier =
octave:2> whos s
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
s 1x1 0 struct
Total is 1 element using 0 bytes
octave:3> isempty(s)
ans = 0
octave:4> ver
----------------------------------------------------------------------
GNU Octave Version 3.5.0+
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.38-11-generic #47-Ubuntu SMP Fri Jul 15 19:27:09
UTC 2011 x86_64
----------------------------------------------------------------------
no packages installed.
s should not be 1x1, but 1x0, 0x0 whatever... At least, isempty(s) should
return "true".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33808>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/