-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspinit.m
31 lines (30 loc) · 1.34 KB
/
spinit.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
function spinit
% SPINIT Add the sparse grid routines directories to Matlab path
try
disp('------------------------------------------------------------------------------');
disp('Sparse Grid Interpolation Toolbox');
disp('------------------------------------------------------------------------------');
disp('Version 5.1.1');
disp('(c) 2006 W. Andreas Klimke, Universitaet Stuttgart.');
disp('(c) 2007-2008 W. A. Klimke. All Rights Reserved.');
disp('Please see LICENSE.txt for license information.');
disp('------------------------------------------------------------------------------');
fullpath = mfilename('fullpath');
pathstr = fileparts(fullpath);
disp('Adding sparse grid routines directory to Matlab search path.');
addpath(pathstr);
disp('Adding examples directory to Matlab search path.');
demopath = [pathstr filesep 'examples'];
addpath(demopath);
disp('------------------------------------------------------------------------------');
disp(['Type >>help spinterp<< or >>help spvals<< for brief usage' ...
' information.']);
disp(['Type >>doc spinterptool<< to open the documentation in the' ...
' help browser.']);
disp(['Type >>demo toolbox ''Sparse Grid Interpolation''<< to' ...
' select demo files.']);
disp(' ');
catch
disp('Initialization failed. The following error occurred:');
rethrow(lasterror);
end