comparison scripts/miscellaneous/getappdata.m @ 18891:7bbe3658c5ef

maint: Use "FIXME:" coding convention in m-files. * flipdim.m, prepad.m, rotdim.m, doc.m, strread.m, textread.m, krylov.m, colon.m, dump_prefs.m, fileattrib.m, getappdata.m, __xzip__.m, unpack.m, fsolve.m, axis.m, meshc.m, print.m, __ghostscript__.m, __go_draw_axes__.m, __print_parse_opts__.m, struct2hdl.m, unique.m, spstats.m, treeplot.m, test.m, datestr.m: Use "FIXME:" coding convention in m-files.
author Rik <rik@octave.org>
date Wed, 25 Jun 2014 13:45:41 -0700
parents 0a8c35ae5ce1
children f0dcb44826f6
comparison
equal deleted inserted replaced
18890:de8c67ba7ac4 18891:7bbe3658c5ef
33 ## Created: 2010-07-15 33 ## Created: 2010-07-15
34 34
35 function val = getappdata (h, name) 35 function val = getappdata (h, name)
36 36
37 if (all (ishandle (h)) && nargin == 2 && ischar (name)) 37 if (all (ishandle (h)) && nargin == 2 && ischar (name))
38 ## FIXME - Is there a better way to handle non-existent appdata 38 ## FIXME: Is there a better way to handle non-existent appdata
39 ## and missing fields? 39 ## and missing fields?
40 val = cell (numel (h), 1); 40 val = cell (numel (h), 1);
41 appdata = struct (); 41 appdata = struct ();
42 for nh = 1:numel (h) 42 for nh = 1:numel (h)
43 try 43 try
44 appdata = get (h(nh), "__appdata__"); 44 appdata = get (h(nh), "__appdata__");