annotate scripts/deprecated/struct_contains.m @ 6650:10da0f6d85c2 ss-2-9-11

[project @ 2007-05-22 06:48:18 by jwe]
author jwe
date Tue, 22 May 2007 06:48:18 +0000
parents 4c8a2e4e0717
children 93c65f2a5668
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4358
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 2003 John W. Eaton
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
2 ##
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
4 ##
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
9 ##
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
14 ##
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4358
diff changeset
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4358
diff changeset
18 ## 02110-1301, USA.
4358
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
19
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
20 ## -*- texinfo -*-
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
21 ## @deftypefn {Function File} {} struct_contains (@var{expr}, @var{name})
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
22 ## This function has been deprecated. Use isfield instead.
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
23 ## @end deftypefn
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
24
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
25 ## Author: jwe
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
26
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
27 function retval = struct_contains (varargin)
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
28
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
29 retval = isfield (varargin{:});
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
30
83d4452bc522 [project @ 2003-02-23 02:16:53 by jwe]
jwe
parents:
diff changeset
31 endfunction