<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>