[go: up one dir, main page]

Menu

[73c35b]: / anal / docopt.m  Maximize  Restore  History

Download this file

101 lines (83 with data), 2.7 kB

  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
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
function [doccmd,options,docpath] = docopt
%DOCOPT Web browser for UNIX platforms.
% DOCOPT is an M-file that you or your system manager can edit
% to specify the Web browser to use with MATLAB. It is used
% for the WEB function with the -BROWSER option. It is also used
% for links to external Web sites from the the Help browser
% and from Web menu items. DOCOPT applies only to non-Macintosh
% UNIX platforms.
%
% DOCCMD = DOCOPT returns a string containing the command that
% WEB -BROWSER uses to invoke a Web browser. Its default is netscape.
%
% To use a different browser, edit docopt.m and change line 51:
%
% 50 elseif isunix
% 51 % doccmd = '';
%
% Remove the comment symbol. In the quotes, enter the command
% that launches your Web browser, and save the file. For example
%
% 51 doccmd = 'mozilla';
%
% specifies Mozilla as the Web browser MATLAB uses.
%
% See also DOC, HELPBROWSER, WEB.
% Copyright 1984-2004 The MathWorks, Inc.
% The MathWorks, Inc. grants permission for Licensee to modify
% this file. Licensee's use of such modified file is subject
% to the terms and conditions of The MathWorks, Inc. Software License
% Booklet.
% $Revision$ $Date$
% Intialize options to empty matrices
global local
doccmd = local.browser; options = []; docpath = [];
% This file automatically defaults to the doccmd shown above
% in the online help text. If you would like to set the doccmd
% default to be different from that shown above, enter it after this
% paragraph.
%---> Start of your own changes to the defaults here (if needed)
%
cname = computer;
if (strncmp(cname,'MAC',3)) % MAC
% doccmd = '';
% options = '';
% docpath = '';
elseif isunix % UNIX
% doccmd = '';
% options = '';
% docpath = '';
elseif ispc % PC
% doccmd = '';
% options = '';
% docpath = '';
else % other
% doccmd = '';
% options = '';
% docpath = '';
end
%---> End of your own changes to the defaults here (if needed)
% ----------- Do not modify anything below this line ---------------
% The code below this line automatically computes the defaults
% promised in the table above unless they have been overridden.
cname = computer;
if isempty(doccmd)
if (strncmp(cname,'MAC',3)) % For MAC
doccmd = '';
elseif isunix % For Unix
doccmd = 'netscape';
end
% For Windows
if ispc, doccmd = ''; end
end
if isempty(options)
% For Unix
options = '';
% For Mac
if (strncmp(cname,'MAC',3)), options = ''; end
% For Windows
if ispc, options = ''; end
end
if isempty(docpath)
docpath = '';
end