www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgifexpr/char.m
function str = char(ifexp) %CHAR Return string description of if expression % % STR = CHAR(IFEXP) returns a description of the IF expression. % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. str = ['IF ',get(ifexp,'leftname'),' ',ifexp.Operator,' ' ,get(ifexp,'rightname'),... ' THEN ',getname(ifexp),' = ',get(ifexp,'out1name'),' ELSE ',... getname(ifexp),' = ',get(ifexp,'out2name'),' END'];