edfImport という関数を使用しようとしています (ここで入手可能: http://kobi.nat.uni-magdeburg.de/edfImport )
この関数を使用するには、まず edfCompile (ツールキットに含まれています) を実行する必要があります。edfCompile を実行すると、次のエラーが発生します。
??? Error using ==> mex
Unable to complete successfully
私は MATLAB 7.1 (R14) を実行しており、コンパイラ用に最新バージョンの MinGW、Cygwin、および Gnumex をセットアップしています (このページの指示に従って: http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII4.0/ cygwin.htm )
サンプルの mex ファイルをコンパイルすることはできますが、これがコンパイラのセットアップ方法の問題ではないという確信はまだありません。感謝して受け取ったヒント。他にも edfCompile の実行に問題があるかどうかを知っておくとよいでしょう... (http://kobi.nat.uni-magdeburg.de/edfImport)
どうもありがとう
編集:完全なエラーメッセージ:
In file included from edfMexImport.cpp:6:0:
EDFFile2.h:37:39: error: 'mwSize' has not been declared
EDFFile2.h:127:45: error: 'mwIndex' has not been declared
edfMexImport.cpp: In function 'void mexFunction(int, mxArray**, int, const mxArray**)':
edfMexImport.cpp:12:3: error: 'mwSize' was not declared in this scope
edfMexImport.cpp:12:10: error: expected ';' before 'OutputDims'
edfMexImport.cpp:48:12: error: expected ';' before 'OptionsDimN'
edfMexImport.cpp:49:9: error: 'OptionsDimN' was not declared in this scope
edfMexImport.cpp:51:13: error: 'OptionsDim' was not declared in this scope
edfMexImport.cpp:51:33: error: expected primary-expression before ')' token
edfMexImport.cpp:51:34: error: expected ';' before 'mxGetDimensions'
edfMexImport.cpp:73:12: error: expected ';' before 'FlagsDimN'
edfMexImport.cpp:74:9: error: 'FlagsDimN' was not declared in this scope
edfMexImport.cpp:76:13: error: 'FlagsDim' was not declared in this scope
edfMexImport.cpp:76:31: error: expected primary-expression before ')' token
edfMexImport.cpp:76:32: error: expected ';' before 'mxGetDimensions'
C:\PROGRAM FILES\MATLAB71\BIN\MEX.PL: Error: Compile of 'edfMexImport.cpp' failed.
??? Error using ==> mex
Unable to complete successfully
Error in ==> edfCompile at 15
eval(sprintf('mex -I''%s'' edfMexImport.cpp EDFFILE2.cpp ''%s/edfapi.lib''', edfapiIncludesFolder, edfapiLibraryFolder));