www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/mv_helptool.m
function mv_helptool(helpcode, modalFig) %MV_HELPTOOL Help dispatcher tool for MBC Toolbox % % MV_HELPTOOL(HELPID) dispatches a help call to the topic identified by % HELPID. HELPID=0 is the default main MBC page. % % MV_HELPTOOL(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: MV_HELPMENU, MV_HELPBUTTON, MV_HELPTOOLBUTTON. % 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