-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmd.m
52 lines (42 loc) · 1.18 KB
/
tmd.m
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
function tmd(TMDFunctionName)
% tmd displays help files for the Tide Model Driver (TMD) software.
%
%% Syntax
%
% tmd
% tmd(TMDFunctionName)
%
%% Description
%
% tmd displays the TMD Getting Started page.
%
% tmd(TMDFunctionName) displays help for any of the TMD function names.
%
%% Example
% To display help for the tmd_tide_pred function simply type this into
% your Command Window:
%
% tmd tmd_predict
%
%% Author Info
% This function was written by Chad A. Greene.
if nargin==0
TMDFunctionName = 'tmd';
end
switch TMDFunctionName
case 'tmd'
showdemo TMD_main_page
case {'predict','tmd_predict'}
showdemo tmd_predict_documentation
case {'interp','tmd_interp'}
showdemo tmd_interp_documentation
case {'data','tmd_data'}
showdemo tmd_data_documentation
case {'conlist','tmd_conlist'}
showdemo tmd_extract_HC_documentation
case {'ellipse','tmd_ellipse'}
showdemo tmd_ellipse_documentation
otherwise
warning(['Sorry, there''s no fancy documentation for ',TMDFunctionName,'. Here''s what we''ve got, or you can try typing ',TMDFunctionName,'.'])
showdemo TMD_main_page
end