www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cglookupone/display.m
function display(LT) %DISPLAY % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. % cglookupOne display method. if strcmp(get(0 , 'FormatSpacing') , 'loose') str = ' '; else str = ''; end disp(str) disp([inputname(1) ' =']); disp(str) if isempty(LT) disp('Empty or incomplete cglookupOne Object'); elseif isempty(get(LT,'breakpoints')) disp(['cglookupOne object with no breakpoints']); else M = get(LT, 'values'); [m,n]=size(M); disp(['cglookupOne object with ' num2str(m) ' breakpoints.']) end disp(str)