annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirtype.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function type = mirtype(x)
wolffd@0 2
wolffd@0 3 if iscell(x)
wolffd@0 4 for i = 1:length(x)
wolffd@0 5 type{i} = mirtype(x{i});
wolffd@0 6 end
wolffd@0 7 return
wolffd@0 8 end
wolffd@0 9
wolffd@0 10 if isa(x,'mirdesign')
wolffd@0 11 type = get(x,'Type');
wolffd@0 12 else
wolffd@0 13 type = class(x);
wolffd@0 14 end