<div dir="ltr"><div><div><div><div><div>Hi fieldtrip list,<br><br></div>we recently ran into some memory issues using the cfg.output = 'powandcsd' option in ft_frequanalysis.<br><br></div>We solved the issue by:<br></div>(1) changing the following line of code (ft_freqanalysis; line 573-574:<br><br>if csdflg, crsspctrm     = complex(nan(ntrials,nchancmb,nfoi,ntoi,cfg.precision),nan(ntrials,nchancmb,nfoi,ntoi,cfg.precision)); end<br><br></div><div>into <br></div><div><br></div>if csdflg, crsspctrm     = nan+nan(ntrials,nchancmb,nfoi,ntoi,cfg.precision)*1i; end<br><br></div><div>and accordingly, <br></div><div><br>if fftflg, fourierspctrm = complex(nan(ntrials,nchan,nfoi,ntoi,cfg.precision),nan(ntrials,nchan,nfoi,ntoi,cfg.precision));       end<br><br></div><div>into <br><br>if fftflg, fourierspctrm = nan+nan(ntrials,nchan,nfoi,ntoi,cfg.precision)*1i;       end<br><br></div><div>(2) defining cfg.precision as 'single'<br><br></div><div>This two procedures saves a huge amount of memory (~ the order of 4). <br></div><div>Now, we wanted to ask, whether these changes/adaptions are okay and do not lead to spurious results? Is there a reason on performing wavelet convolution on double instead of single precision?<br><br></div><div>Thank you in advance.<br><br></div><div>Best,<br></div><div>Claudio Georgii<br></div><div><div><div><div><div><br><br clear="all"><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Claudio Georgii, MSc.<br></div><div>Phd student<br></div><div>University of Salzburg - Department of Psychology<br></div><div>Eating Behavior Laboratory<br></div><div>Hellbrunnerstraße 34<br></div><div>5020 Salzburg - Austria<br><br></div><div>Phone: 0043- (0)662 8044 5164<br></div><div>E-Mail: <a href="mailto:claudio.georgii@sbg.ac.at" target="_blank">claudio.georgii@sbg.ac.at</a><br></div></div></div>
</div></div></div></div></div></div></div>