www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgmodelnode/listinfo.m
function [nds,cheaders,vals,colsize,recurse,p_sub] = listinfo(T,tpfilter) %LISTINFO return headers and values for node in a list % % [NDs,HDRs,VALs,COLSIZEs,DOCHILDREN,recurse,p_sub] = LISTINFO(ND,tpfilter) % % Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. if matchtype(typeobject(T),tpfilter) nds = address(T); cheaders = {'Type','Inputs','Lower Output Limit', 'Upper Output Limit', 'Description'}; colsize = [85 200 100 100 200]; this = info(getdata(T)); inputs = getinputs(this); if isempty(inputs) inputstr = ''; else input_strings = pveceval(inputs, @getname); inputstr = sprintf('%s, ', input_strings{:}); inputstr(end-1:end) = []; end clips = get(this, 'clips'); clipmin = clips(1); clipmax = clips(2); vals = {gettype(this), inputstr, clipmin, clipmax, description(get(this, 'model'))}; p_sub=xregpointer; else nds = []; cheaders = {}; vals = {}; colsize = []; p_sub=[]; end recurse=0;