openEMS/matlab/setup.m
Thorsten Liebig badad9cc3b Matlab: major updates/fixes for Octave support handling hdf5 field dumps
Octave: to setup the full octave hdf5 support
run setup.m to build all necessary octave files.
Repeat this process any time you update openEMS or octave.

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2012-01-16 13:30:50 +01:00

24 lines
481 B
Matlab

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')
mkoctfile -lhdf5 h5readatt_octave.cc
else
end
cd(current_path);