<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Szabi,<br>
<br>
That error has nothing to do with the wavelet approach but with
the fact that you want to have steps of 5ms (as specified in
cfg.toi) for your TFR. FieldTrip will create one big data matrin
nTrials x nChannels x nSamples x nFrequencies. With the settings
you specified this will be quite huge, and it does not fit into
memory when Matlab tries to initiate that variable. I would
suggest you use 50ms steps, that is sufficient especially given
that you need some tens of milliseconds for estimating the
frequency content anyway. An alternative would be to use the
torque/maui cluster at the Donders and request a session with
loads of memory :)<br>
<br>
Best,<br>
Jörn<br>
<br>
On 7/5/2013 4:51 PM, Szabolcs Szebényi wrote:<br>
</div>
<blockquote
cite="mid:CA+67x=Dqnwb1MNOBigOFXnt7mwo1JPVdA4bnqPC21M_WziPXjQ@mail.gmail.com"
type="cite">
<div dir="ltr"><span
style="font-family:arial,sans-serif;font-size:13px">Dear
Fieldtrip developers and users,</span>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
I have a question about ft_freqanalysis when I use the
'wavelet' method. When I call this fieldtrip function with the
specifications below, I get an error message right at the
first trial:</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div><font color="#ff0000">Error using zeros</font></div>
<div><font color="#ff0000">Out of memory. Type HELP MEMORY for
your options.</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">Error in ft_freqanalysis (line 601)</font></div>
<div><font color="#ff0000"> if powflg, powspctrm =
nan+zeros(ntrials,nchan,nfoi,ntoi,cfg.precision);</font></div>
<div><font color="#ff0000"> end</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#000000">Here are my specifications:</font></div>
<div><font color="#000000">
<div><br>
</div>
<div> cfg = [];</div>
<div> cfg.trials = find(data.trialinfo(:,3)
== iPhase);</div>
<div> cfg.channel = 'MEG'; </div>
<div> cfg.method = 'wavelet';</div>
<div> cfg.toi = -1.5:0.005:4;</div>
</font><font color="#000000"> cfg.foi =
30:1:90;</font><font color="#000000">
<div>
cfg.width = 5;</div>
<div> cfg.keeptrials = 'yes';</div>
<div> cfg.output = 'pow';</div>
<div> cfg.pad = 'maxperlen';</div>
<div> cfg.padtype = 'zero';</div>
<div> cfg.polyremoval = 0;</div>
<div><br>
</div>
<div>I tried out the wavelet approach already for lower
frequencies (foi = 1:0.5:30; toi = -1.5:0.1:4; width =
7) and it worked fine for that. For the higher
frequencies above, it cannot proceed further to the 2nd
trial with 60GB memory either, so I think, the problem
is somewhere else.</div>
<div><br>
</div>
<div>The data itself consists of 275 trials, with a
sampling rate of 600Hz; 273 channels CTF MEG.</div>
<div><br>
</div>
<div>I would highly appreciate if you could tell me where
the problem is and what I should change in order to
proceed.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you in advance for your help,</div>
<div><br>
</div>
<div>Szabolcs Szebényi</div>
</font></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>