forked from sfstoolbox/sfs-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SFS_stop.m
82 lines (72 loc) · 3.97 KB
/
SFS_stop.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
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
function SFS_stop()
%SFS_START Start the Sound Field Synthesis Toolbox
%
% Usage: SFS_start;
%
% SFS_START starts the Sound Field Synthesis Toolbox (SFS).
% This function must be run first in order to add the path's to Matlab.
%
% see also: SFS_config, SFS_version
%*****************************************************************************
% Copyright (c) 2010-2013 Quality & Usability Lab, together with *
% Assessment of IP-based Applications *
% Deutsche Telekom Laboratories, TU Berlin *
% Ernst-Reuter-Platz 7, 10587 Berlin, Germany *
% *
% Copyright (c) 2013 Institut fuer Nachrichtentechnik *
% Universitaet Rostock *
% Richard-Wagner-Strasse 31, 18119 Rostock *
% *
% This file is part of the Sound Field Synthesis-Toolbox (SFS). *
% *
% The SFS is free software: you can redistribute it and/or modify it under *
% the terms of the GNU General Public License as published by the Free *
% Software Foundation, either version 3 of the License, or (at your option) *
% any later version. *
% *
% The SFS is distributed in the hope that it will be useful, but WITHOUT ANY *
% WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS *
% FOR A PARTICULAR PURPOSE. *
% See the GNU General Public License for more details. *
% *
% You should have received a copy of the GNU General Public License along *
% with this program. If not, see <http:https://www.gnu.org/licenses/>. *
% *
% The SFS is a toolbox for Matlab/Octave to simulate and investigate sound *
% field synthesis methods like wave field synthesis or higher order *
% ambisonics. *
% *
% http:https://dev.qu.tu-berlin.de/projects/sfs-toolbox [email protected] *
%*****************************************************************************
%% ===== Configuration ===================================================
printbanner = false;
%% ===== Adding Path's ===================================================
% Get the basepath as the directory this function resides in.
% The 'which' solution below is more portable than 'mfilename'
% becase old versions of Matlab does not have "mfilename('fullpath')"
basepath=which('SFS_stop');
% Kill the function name from the path.
basepath=basepath(1:end-11);
% Add the base path and the needed sub-directories
if exist('rmpath')
rmpath([basepath,'/SFS_analysis']);
rmpath([basepath,'/SFS_binaural_synthesis']);
rmpath([basepath,'/SFS_general']);
rmpath([basepath,'/SFS_helper']);
rmpath([basepath,'/SFS_ir']);
rmpath([basepath,'/SFS_monochromatic']);
rmpath([basepath,'/SFS_monochromatic/driving_functions_mono']);
rmpath([basepath,'/SFS_plotting']);
rmpath([basepath,'/SFS_time_domain']);
rmpath([basepath,'/SFS_time_domain/driving_functions_imp']);
rmpath([basepath,'/SFS_HRTF_extrapolation']);
rmpath([basepath,'/validation']);
if isoctave
rmpath([basepath,'/SFS_octave']);
end
%addpath(basepath);
end
%% ===== Banner ==========================================================
if(printbanner)
printf('SFS %1.1f successfully stopped.\n',SFS_version);
end