Matlab

コメントアウトの仕方

一行 % hogehoge = 1; 複数行 %{ hogehoge = 2; hoge = hogehoge; %}

指定の要素以外を取り出す

R >xx [1] 1 2 3 4 5 >x[-1] [1] 2 3 4 5 Matlab >>x=1:5 x= 1 2 3 4 5 >>x(setdiff(1:size(x,2),1) ans = 2 3 4 5 Matlabの方でもっといい方法はないものだろうか…

RMatlab

RとMatlabの相互インターフェイスインストール方法 http://www.omegahat.org/RMatlab/ http://www.stanford.edu/~dgleich/notebook/2009/09/rmatlab_using_r_from_matlab.html起動 $source RMatlab/inst/scripts/RMatlab.sh $matlab( -nojvm -nodisplay)>>in…

How to compile EEGLabImport on 64-bit Linux

Edit the following lines in defines.h (src/shared/defines.h), #if( defined( __BORLANDC__ ) && ( __BORLANDC__ > 0x0560 ) ) // bcc32 > 5.5.1 typedef unsigned long long uint64; typedef signed long long sint64; #else // __BORLANDC__ typedef un…

BCI2000 OfflineAnalysis on Linux

Comment out the following lines in OfflineAnalysis.m, if ~strcmp(computer, 'PCWIN') || verNum error('BCI2000 Offline Analysis currently works only on windows-based systems with version 7.x or greater of MATLAB or the MATLAB Component Runti…