forked from yuip/hfss-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hfssRemovePaths.m
50 lines (46 loc) · 1.51 KB
/
hfssRemovePaths.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
% ----------------------------------------------------------------------------
% function hfssRemovePaths([relPath = ''])
%
% Description :
% -------------
% Removes all the paths used by all API functions.
%
% Parameters :
% ------------
% relPath - Relative path from this function directory, in order to
% remove all API directories. It must end with
% a slash ("/").
%
% Note :
% ------
% Call this function when you have finished using all the API functions
% if you want to remove all the paths included by the funcion
% hfssIncludePaths(...).
%
% Example :
% ---------
% hfssRemovePaths();
% hfssRemovePaths('../../');
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% CHANGELOG
%
% 30-May -2013: *Initial release.
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% Written by Daniel R. Prado
% 30 May 2013
% ----------------------------------------------------------------------------
function hfssRemovePaths(relPath)
if (nargin < 1)
relPath = '';
end
rmpath([relPath, 'boundary/']);
rmpath([relPath, '3dmodeler/']);
rmpath([relPath, 'analysis/']);
rmpath([relPath, 'general/']);
rmpath([relPath, 'radiation/']);
rmpath([relPath, 'reporter/']);
rmpath([relPath, 'fieldsCalculator/']);
rmpath([relPath, 'mesh/']);