www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgmswitchexpr/char.m
function str = char(m) %CHAR Return string description of object % % STR = CHAR(OBJ) returns a description of the MSwitch expression. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. inputs = getinputs(m); str = 'Choose from '; if length(inputs)>1 for n=2:length(inputs) str = [str,inputs(n).getname,', ']; end else str = [str '<none>']; end str = [str,' by value of ',inputs(1).getname];