<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi all!</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm trying to do source localization analysis on EEG data and I'm facing some problems when using SPM to create a template head model, as I'm not able to load the data in SPM.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">First, I use the function <i>spm_eeg_ft2spm
</i>to convert the EEG data from fieldtrip to spm data format. The data is saved as '*.mat' and it is:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>"SPM M/EEG data object</div>
<div>Type: single</div>
<div>Transform: time</div>
<div>1 conditions</div>
<div>53 channels</div>
<div>2000 samples/trial</div>
<div>224 trials</div>
<div>Sampling frequency: 500 Hz</div>
<div>Loaded from file *.mat</div>
<div><br>
</div>
<div>Use the syntax D(channels, samples, trials) to access the data</div>
<div>Type "methods('meeg')" for the list of methods performing other operations with the object</div>
<div>Type "help meeg/method_name" to get help about methods"</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Then, I open SPM interface (MEEG), and click on 3D source reconstruction to load the data. However, the data aren't loaded and I get this error in matlab:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>Error using spm_eeg_load (line 53)</div>
<div>File "*.mat" doesn't contain SPM M/EEG data.</div>
<div><br>
</div>
<div>Error in spm_eeg_inv_imag_api>Load_Callback (line 124)</div>
<div>D = spm_eeg_load(S);</div>
<div><br>
</div>
<div>Error in spm_eeg_inv_imag_api (line 53)</div>
<div> feval(varargin{:}); % FEVAL switchyard</div>
<div> </div>
<div>Error while evaluating UIControl Callback</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">I'm using SPM12 and MATLAB R2014b.</p>
<p style="margin-top:0;margin-bottom:0">I'm trying to create a head model in SPM which I will be then able to use in fieldtrip to conduct the source analysis.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Does anyone have any idea why do I get this error, and how can I load a fieldtrip (or even EEGLAB) dataset in SPM?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks so much in advance,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best wishes,</p>
<p style="margin-top:0;margin-bottom:0">Ioanna</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
</body>
</html>