gahelpviewer.m

来自「matlab7 gads工具箱」· M 代码 · 共 28 行

M
28
字号
function gahelpviewer(topic, errorname)
% GAHELPVIEWER is a helper file for the Genetic Algorithm and Direct Search Toolbox. 
% GAHELPVIEWER Displays help for a Genetic Algorithm and Direct Search TOPIC. 
% If the map file cannot be found, an error is displayed using ERRORNAME

%   Copyright 2004 The MathWorks, Inc. 
%   $Revision: 1.1 $

import java.io.*;

error = false;
mapfilename = [docroot '/toolbox/gads/gads.map'];
f = File(mapfilename);
if f.exists
    try
        helpview(mapfilename, topic);
    catch
        error = true;
    end
else
    error = true;
end
if error
	message = sprintf('Unable to display help for %s\n', ...
							errorname);
	errordlg(message);
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?