/usr/share/octave/site/m/vlfeat/toolbox/vl_help.m is in octave-vlfeat 0.9.17+dfsg0-6+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | function vl_help(topic, varargin)
% VL_HELP VLFeat toolbox builtin help
% VL_HELP('doc') displays the HTML documentation in MATLAB
% web-browser. VL_HELP('vl_function') displays the HTML
% documentation relative to the specified funtion. VL_HELP('topic')
% displays the HTML documentation relative to a particular 'topic'.
%
% VL_HELP(..., 'ONLINE', true) uses the online documentation instead of
% the local copy.
%
% Example::
% To get information about the library, a topic such as Fisher vectors,
% or a function such as VL_FISHER(), use:
% vl_help doc
% vl_help fisher
% vl_help vl_fisher
%
% See also the <a href="matlab:vl_help('index')">core VLFeat
% documentation</a>.
% Author: Andrea Vedaldi
% Copyright (C) 2013 Andrea Vedaldi
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD license (see the COPYING file).
if nargin == 0
help vl_help ;
return ;
end
opts.online = false ;
opts = vl_argparse(opts, varargin) ;
local = fullfile(vl_root, 'doc') ;
if opts.online
prefix = 'http://www.vlfeat.org/doc' ;
else
prefix = local ;
end
if strcmp(topic, 'doc')
asFunction = 'index.html' ;
asTopic = 'index.html' ;
else
asFunction = fullfile('mdoc', [lower(topic) '.html']) ;
asTopic = fullfile('api', [lower(topic) '.html']) ;
end
if exist(fullfile(local, asFunction), 'file')
web(fullfile(prefix, asFunction)) ;
elseif exist(fullfile(local, asTopic), 'file')
web(fullfile(prefix, asTopic)) ;
else
error('''%s'' is not a valid function or topic.', topic) ;
end
|