www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@comparisonpane/pGetOptionStrings.m
function str = pGetOptionStrings(obj) %PGETOPTIONSTRINGS A short description of the function % % STR = PGETOPTIONSTRINGS(OBJ) % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if any(cellfun('isempty', obj.DataNames)) s1 = 'Data A and Data B'; s2 = 'Error'; else s1 = sprintf('%s (blue) & %s', obj.DataNames{:}); s2 = sprintf('Error (%s-%s)', obj.DataNames{:}); end str = {s1; ... s2; ... 'Squared Error'; ... 'Absolute Error'; ... 'Relative Error'; ... 'Absolute Relative Error (%)'; ... };