[FieldTrip] problems using fieldtrip for source reconstruction EEG

Diego Lozano-Soldevilla dlozanosoldevilla at gmail.com
Mon Jan 7 10:30:16 CET 2019


Dear Irene,

Here a link about plotting in general:
http://www.fieldtriptoolbox.org/tutorial/#visualizingthe-results-of-an-analysis

Here a tutorial about basic power analysis using resting state data and
connectivity analysis in source space
http://www.fieldtriptoolbox.org/tutorial/networkanalysis/

And here how you can help us to improve the documentation
http://www.fieldtriptoolbox.org/contribute/

I hope that helps,

Diego








On Mon, 7 Jan 2019 at 10:18, Irene Varela Leniz <
irene.varela at alumni.mondragon.edu> wrote:

> Good morning Julian,
>
> Can you help me with plotting some resting state EEG signals? I am new in
> Fieldtrip and I dont find clear information about this topic and I dont
> really know how to do plottings in Fieldtrip. I feel like the fieldtrip
> documentation is a little bit weak....
>
> Thank you in advance,
> Best regards,
>
> Irene Varela
>
> El vie., 4 ene. 2019 a las 14:08, Julian Keil (<julian.keil at gmail.com>)
> escribió:
>
>> Hi Irene,
>>
>> what is the reason to use the extra checkdata step?
>> The function checks if the input data has the correct „datatype“ field.
>> Since you probably don’t have that field, the function will throw an
>> error.
>>
>> Also, I’d recommend using the eeglab2fieldtrip-function to get from
>> EEGlab .set to a fieldtrip-like structure.
>>
>> Best,
>>
>> Julian
>>
>>
>> Am 04.01.2019 um 12:47 schrieb Irene Varela Leniz <
>> irene.varela at alumni.mondragon.edu>:
>>
>> Hi,
>>
>> I am a researcher in Mondragon University working on source
>> reconstruction of EEG data. I am new at fieldtrip and I feel a little bit
>> lost about this software. I have some errors in a code I have developed but
>> I do not manage to solve them. Could you please help me?
>>
>> I want to plot EEG data of a channel called 'A1' which is the first row
>> in a 2D matrix variable called data, which is inside EEG structure. The
>> code I have developed is below and I get the following error:
>>
>> *Error using ft_checkdata (line 525)*
>> *This function requires 'timelock' or 'freq' data as input, see
>> ft_datatype_timelock or ft_datatype_freq.*
>>
>> The code is the following:
>> *clc; clear all; close all;*
>> *clear variables*
>> *restoredefaultpath;  % set a clean path*
>> *main='E:\';*
>> *cd='E:\fieldtrip-20181217'; % change this*
>> *addpath(cd);*
>>
>> *ft_defaults;*
>> *filename = "E:\PBLdata\O200_RS1_final.set"; %cambiar aqui y poner
>> vuestro directorio*
>> *load(filename, '-mat'); %Create EEG struct*
>> *location = EEG.chanlocs;*
>> *data = EEG.data; *
>>
>> *cfg = [];*
>> *cfg.xlim = [-0.2 1.0];*
>> *cfg.ylim = [-1e-13 3e-13];*
>> *cfg.channel = 'A1';*
>> *datos = data(1,:);*
>> *Ndata = numel(datos);*
>> *for i=1:Ndata*
>> *  % check if the input data is valid for this function*
>> *  datos(i) = ft_checkdata(datos(i), 'datatype', {'timelock', 'freq'});*
>> *end*
>>
>> *figure; ft_singleplotER(cfg,datos);*
>>
>> Thank you in advance,
>>
>> Irene
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190107/95c446ed/attachment-0002.html>


More information about the fieldtrip mailing list