[FieldTrip] ft_lateralizedpotential question
Lam, N.H.L. (Nietzsche)
n.lam at donders.ru.nl
Fri Jun 12 13:07:47 CEST 2015
Hi Emilie,
We won't be ripping any fields anytime ("Fieldrippers") ;)
(1) Assuming your data has been calculated correctly, then the issue is the input argument you gave to ft_singleplotER
You should probably try: <ft_singleplotER(cfg,lrp) % giving ft_singleplotER only the 'plotlabel' field is incorrect because the function expects a struct (i.e. the structure of timelock of freqdata).
(2) Your second question is a bit vague, but logically speaking you will not find a difference between avgL and avgR if both are computed from the same dataset. 1-1 = 0, no difference.
Not sure what your pipeline looks like, but I suspect that you need timelocked data for only the left sensors in one data set (Lavg), and timelocked data for only the right sensors in a separate dataset (Ravg).
Good luck,
Nietzsche
________________________________
From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Caspar, Emilie [e.caspar at ucl.ac.uk]
Sent: 12 June 2015 12:53
To: fieldtrip at science.ru.nl
Subject: [FieldTrip] ft_lateralizedpotential question
Dear Fieldrippers,
I have a small question about ft_lateralizedpotential.
I am currently trying to compute a LRP. Thus, I wrote:
avgL = ft_timelockanalysis(cfg, cleandata);
avgR = ft_timelockanalysis(cfg, cleandata);
cfg = [];
cfg.layout = 'biosemi64.lay';
cfg.channelcmb={'A13' 'B18'};
lrp=ft_lateralizedpotential(cfg,avgL,avgR);
cfg = [];
cfg.xlim = [-2 1];
cfg.ylim = [-12 10];
clf;
ft_singleplotER(cfg, lrp.plotlabel)
There is apparently something wrong with the plot because I get the following error message:
Error using ft_checkdata (line 461)
This function requires timelock or freq data as input.
I have also tried to add a new avgLRP = ft_timelockanalysis(cfg, lrp);
and then to compute the plot based on that, but it is not working. If anyone has an idea!
Second question:, ft_lateralizedpotential only works (apparently) with two outputs (avgL and R, for instance). Thus, I computed the same ft_timelockanalysis with two different names, but I am not sure this is correct. Is someone able to answer?
Thank you in advance for your help!
Emilie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150612/8d771477/attachment-0002.html>
More information about the fieldtrip
mailing list