[FieldTrip] fieldtrip Digest, Vol 59, Issue 27
Es, M.W.J. van (Mats)
M.vanEs at donders.ru.nl
Wed Oct 28 13:13:17 CET 2015
Hi Jan-Mathijs,
the length of trials is indeed fixed and the time axis was the same for all trials, so your option did not work. I did find the problem however: the time-window I tried to select was inconsistent with the time axis of the trials. I shifted the time-axis with 1/(2*Fs) and now the axes are equal again. Thank you for your help.
Best,
Mats
________________________________________
From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of fieldtrip-request at science.ru.nl [fieldtrip-request at science.ru.nl]
Sent: Wednesday, October 28, 2015 12:00 PM
To: fieldtrip at science.ru.nl
Subject: fieldtrip Digest, Vol 59, Issue 27
Send fieldtrip mailing list submissions to
fieldtrip at science.ru.nl
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
or, via email, send a message with subject or body 'help' to
fieldtrip-request at science.ru.nl
You can reach the person managing the list at
fieldtrip-owner at science.ru.nl
When replying, please edit your Subject line so it is more specific
than "Re: Contents of fieldtrip digest..."
Today's Topics:
1. Problem matrix dim in ft_timelockanalysis (Es, M.W.J. van (Mats))
2. Re: Problem matrix dim in ft_timelockanalysis
(Schoffelen, J.M. (Jan Mathijs))
3. comodugrams (power-power correlation) (van Lier Ben)
----------------------------------------------------------------------
Message: 1
Date: Tue, 27 Oct 2015 14:29:19 +0000
From: "Es, M.W.J. van (Mats)" <M.vanEs at donders.ru.nl>
To: "fieldtrip at science.ru.nl" <fieldtrip at science.ru.nl>
Subject: [FieldTrip] Problem matrix dim in ft_timelockanalysis
Message-ID:
<3FC79061C73BEF44A3BEDA5DFC0ADBDF277F1AD7 at exprd01.hosting.ru.nl>
Content-Type: text/plain; charset="iso-8859-1"
Hi FieldTrippers,
I want to apply a support vector machine (SVM) on small timewindows of my data, which means I loop ft_timelockanalysis and ft_timelockstatistics over time. However, for some timepoint I get the following error:
Index exceeds matrix dimensions.
Error in ft_timelockanalysis (line 278)
s (:,windowsel) = s (:,windowsel) + dat; % compute the sum
I tried to look into the error, and I saw that for some timewindows 'windowsel' and 'dat' are a 1x4 vector, whereas 's' is a 1x3 vector. I couldn't find why this mismatch occurs so any help is appreciated.
I also tried older versions of this function and I got the same error. I am using the latest fieldtrip on matlab2015a on the cluster.
Best,
Mats van Es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151027/c15ca778/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 27 Oct 2015 14:44:56 +0000
From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] Problem matrix dim in ft_timelockanalysis
Message-ID: <B6E1D6EE-5459-4D1E-864A-D1640F9834DA at fcdonders.ru.nl>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mats,
Based on your description I suspect an issue with floating point numerical round off. I would assume that the length of your trials is fixed and the time axis supposed to be equal across trials?
Could you try and do data.time(1:end) = data.time(1); and report back whether the problem persists (or vanishes)?
Best,
Jan-Mathijs
On Oct 27, 2015, at 3:29 PM, Es, M.W.J. van (Mats) <M.vanEs at donders.ru.nl<mailto:M.vanEs at donders.ru.nl>> wrote:
Hi FieldTrippers,
I want to apply a support vector machine (SVM) on small timewindows of my data, which means I loop ft_timelockanalysis and ft_timelockstatistics over time. However, for some timepoint I get the following error:
Index exceeds matrix dimensions.
Error in ft_timelockanalysis (line 278)
s (:,windowsel) = s (:,windowsel) + dat; % compute the sum
I tried to look into the error, and I saw that for some timewindows 'windowsel' and 'dat' are a 1x4 vector, whereas 's' is a 1x3 vector. I couldn't find why this mismatch occurs so any help is appreciated.
I also tried older versions of this function and I got the same error. I am using the latest fieldtrip on matlab2015a on the cluster.
Best,
Mats van Es
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151027/d09a4f30/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 27 Oct 2015 15:28:44 +0000
From: "van Lier Ben" <ben.vanlier at bsse.ethz.ch>
To: "fieldtrip at science.ru.nl" <fieldtrip at science.ru.nl>
Subject: [FieldTrip] comodugrams (power-power correlation)
Message-ID: <DC66D6ECA4FEFA4BBEE185B117D1DA6643342BB7 at MBX23.d.ethz.ch>
Content-Type: text/plain; charset="iso-8859-1"
Hi FieldTrip,
I am trying to get the comodugrams of each channel pair to look for power-power correlations across frequencies. It would be great to multiplot them (depending on refchannel) with freqs on x and y, and corrcoefs on z.
I can't seem to get the right output from connectivityanalysis. Is there a clever way of doing this within fieldtrip? Will multiplotTFR be able to handle this? Need to trick it into thinking one freq dim is a time dim I guess.
cheers,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151027/e6409f4c/attachment-0001.html>
------------------------------
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
End of fieldtrip Digest, Vol 59, Issue 27
*****************************************
More information about the fieldtrip
mailing list