2012-01-16 12:30:50 +00:00
|
|
|
function setup()
|
|
|
|
% function setup()
|
|
|
|
%
|
|
|
|
% setup openEMS Matlab/octave interface
|
|
|
|
%
|
|
|
|
% openEMS matlab/octave interface
|
|
|
|
% -----------------------
|
|
|
|
% author: Thorsten Liebig (2011)
|
|
|
|
|
|
|
|
disp('setting up openEMS matlab/octave interface')
|
|
|
|
|
|
|
|
% cd to directory of this file and restore current path at the end
|
|
|
|
current_path = pwd;
|
|
|
|
dir = fileparts( mfilename('fullpath') );
|
|
|
|
cd(dir);
|
|
|
|
|
|
|
|
if isOctave()
|
|
|
|
disp('compiling oct files')
|
2012-03-26 19:46:08 +00:00
|
|
|
fflush(stdout)
|
2013-01-02 18:21:08 +00:00
|
|
|
if isunix
|
|
|
|
mkoctfile -lhdf5 -DH5_USE_16_API h5readatt_octave.cc
|
|
|
|
else
|
|
|
|
mkoctfile -lhdf5 -DH5_USE_16_API h5readatt_octave.cc
|
|
|
|
end
|
2012-01-16 12:30:50 +00:00
|
|
|
else
|
2012-03-26 19:46:08 +00:00
|
|
|
disp('Matlab does not need this function. It is Octave only.')
|
2012-01-16 12:30:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
cd(current_path);
|