-
Notifications
You must be signed in to change notification settings - Fork 0
/
mtagipack_setup.m
44 lines (37 loc) · 1.23 KB
/
mtagipack_setup.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
%! @file mtagipack_setup.m
% usage:
% put the containing directory into your matlab path:
% \code
% >> path(path, '...path/to/mtagipack/');
% \endcode
% compile the mex functions:
% \code
% >> which mtagipack_setup
% ...path/to/mtagipack/mtagipack_setup.m
% >> mtagipack_setup
% setup mex in .../mtagipack
% *** if you get errors, make sure to remove "-ansi" from mexopts.sh (see mex -setup) ***
% compiling mexLoadAgilentTraces...
% compiling mexLoadAgilentParams...
% return to /wherever you were/
% >> mexLoadAgilentTraces
% Error using mexLoadAgilentTraces
% usage: [traces mainh blockh] = mexLoadAgilentTraces(filename)
%
% \endcode
%
debugflags = '-v -g';
debugflags = '';
oldpath=pwd;
[fpath, name, exte] = fileparts(which('mtagipack_setup'));
cd (fpath);
disp(['setup mex in ' fpath]);
disp(['*** if you get errors, make sure to remove "-ansi" from mexopts.sh (see mex -setup) ***']);
disp('compiling mexLoadAgilentTraces...')
mex -largeArrayDims mexLoadAgilentTraces.c mexCommons.c varian.c
disp('compiling mexSaveAgilentTraces...')
mex -largeArrayDims mexSaveAgilentTraces.c mexCommons.c varian.c
disp('compiling mexLoadAgilentParams...')
mex -largeArrayDims mexLoadAgilentParams.c cprocpar.c
disp(['return to ' oldpath]);
cd (oldpath);