1 function bool=isempty(obj)
\r
2 % Returns true if the object is considered empty, false otherwise.
\r
4 % Syntax: (* = optional)
\r
6 % bool = isempty(obj);
\r
16 % The resulting logic datatype (true/false)
\r
18 % Toolbox for nonlinear filtering.
\r
19 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
21 % This program is free software; you can redistribute it and/or
\r
22 % modify it under the terms of the GNU General Public License
\r
23 % as published by the Free Software Foundation; either version 2
\r
24 % of the License, or (at your option) any later version.
\r
26 % This program is distributed in the hope that it will be useful,
\r
27 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
28 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
29 % GNU General Public License for more details.
\r
31 % You should have received a copy of the GNU General Public License
\r
32 % along with this program; if not, write to the Free Software
\r
33 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
35 bool=isempty(obj.array);
\r