www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/cghelptool.m
function cghelptool(helpcode, modalFig) %CGHELPTOOL Help dispatcher tool for cage % % CGHELPTOOL(HELPID) dispatches a help call to the topic identified by % HELPID. HELPID=0 is the default main MBC page. % % CGHELPTOOL(HELPID, HFIG) dispatches a help call that will open the % context-sensitive help window, with the given figure handle HFIG as the % parenting window. % % See also: CGHELPMENU,CGHELPBUTTON, CGHELPTOOLBUTTON. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. try if isempty(helpcode) doc('mbc'); else if nargin==1 helpview(fullfile(docroot, 'toolbox', 'mbc', 'mbc.map'), ... helpcode); else helpview(fullfile(docroot, 'toolbox', 'mbc', 'mbc.map'), ... helpcode, 'CSHelpWindow', modalFig); end end catch if nargin==1 helpview(fullfile(docroot, 'nofunc.html')); else helpview(fullfile(docroot, 'nofunc.html'), 'CSHelpWindow', modalFig); end end