This provides a language binding of libbiosig to Matlab and Octave. and some speedier c-mex implementation for some matlab code. Basically, mex-files for loading biosig data are provided. - mexSLOAD.mex* loads the whole file (header and data). - mexSOPEN.mex* reads only the header information. - mexSSAVE.mex* saves data into various biosig format the list of supported formats is shown here: http://pub.ist.ac.at/~schloegl/biosig/TESTED - accovf_mex.mex* compute auto- and cross-correlation function for MOD method - sumskipnan_mex.mex* covm_mex.mex* COMPILATION: == Octave on Linux ======================= On Linux platforms the compilation is straight forward. A prerequisite is libbiosig (with its dependencies). make libbiosig && sudo make install Generate and install mexbiosig-package make mexbiosig sudo make install_mexbiosig == Octave on MacOSX ======================= You need to have homebrew (for details see http://brew.sh) # 1) Install XCode from App Store xcode-select --install # 2) install homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # 3) Install prerequisites and recommendations for Octave brew install caskroom/cask/brew-cask brew cask install xquartz brew cask install mactex brew install curl # 4) install Octave brew tap homebrew/science export PATH="$PATH:/usr/texbin" brew install octave --with-docs and install biosig brew tap schloegl/biosig brew install mexbiosig == Octave on Window (MXE-Octave) ======================= # 1) Download and install Octave 4.0.0 https://ftp.gnu.org/gnu/octave/windows/ # 2) Get biosig sources either with git git clone git://git.code.sf.net/p/biosig/code biosig-code or source package from http://biosig.sourceforge.net/download.html libbiosig-X.Y.Z.src.tar.gz (requires version 1.7.3 or later) # 3) Start Octave and change directory to .../biosig4c++/ # 4) Make and install libbiosig system('make && make install') # 5) Generate mexbiosig pkg system('make mexbiosig') # 6) Install mexbiosig-package pkg install mex/mexbiosig-1.7.3.tar.gz == Matlab on Linux, MacOSX ======================= Prerequisites: sudo apt-get install zlib1g-dev libsuitesparse-dev Edit Makefile and set the correct path to Matlab: The mex files for Matlab are generated with MATLABDIR=/usr/local/MATLAB/R2014b make mex4m == Matlab v7.11 for Win32 ================ Compilation was successful using the mingw-cross-env on linux to generate Win32/mex files. GnuMex/Mingw must be installed together with Matlab on windows. The gnumex libraries must be copied to the linux machine having MinGW-Cross-env installed. Adapt the Makefile and run make mexw32 mexw64 Copyright (C) 2011,2015,2022 Alois Schloegl This function is part of the "BioSig for C/C++" repository (BioSig4C++) at http://biosig.sf.net/