-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathhfssIncludePaths.m
54 lines (50 loc) · 1.8 KB
/
hfssIncludePaths.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
% ----------------------------------------------------------------------------
% function hfssIncludePaths([relPath = ''])
%
% Description :
% -------------
% Includes all the paths to use all API functions.
%
% Parameters :
% ------------
% relPath - Relative path from this function directory, in order to
% include the rest of the API directories. It must end with
% a slash ("/"). You must add first the API root directory
% manually to the Matlab path with the addpath command.
%
% Note :
% ------
% Call this function first before start using the API using the apropriate
% relative path, in case your code is not in the root directory of the API
% (see examples)
%
% Example :
% ---------
% hfssIncludePaths();
% hfssIncludePaths('../../');
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% CHANGELOG
%
% 30-Sept-2012: *Initial release.
% 03-Octo-2012: *Add 'fieldsCalculator/' path.
% 04-Nove-2012: *Add 'mesh/' path.
% 30-May -2013: *Add relative path as an optional argument.
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% Written by Daniel R. Prado
% 30 September 2012
% ----------------------------------------------------------------------------
function hfssIncludePaths(relPath)
if (nargin < 1)
relPath = '';
end
addpath([relPath, 'boundary/']);
addpath([relPath, '3dmodeler/']);
addpath([relPath, 'analysis/']);
addpath([relPath, 'general/']);
addpath([relPath, 'radiation/']);
addpath([relPath, 'reporter/']);
addpath([relPath, 'fieldsCalculator/']);
addpath([relPath, 'mesh/']);