<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Andrade,
<div class=""><br class="">
</div>
<div class="">Without any more specific information, the only meaningful comment that can be given here, is ‘get yourself a more powerful computer’.</div>
<div class=""><br class="">
</div>
<div class="">Memory usage depends highly on the operating system (in particular: matlab on windows machines used to be much less memory friendly, but it’s been a while that I have been running real computations on a window machine so perhaps this has changed),
the total size of all variables that need to be kept in memory, etc.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 21 Jun 2020, at 22:34, Andrade Rey René <<a href="mailto:rene.andrade@edu.uah.es" class="">rene.andrade@edu.uah.es</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear experts:
<div class="">I am running this code </div>
<div class=""><br class="">
</div>
<div class="">
<pre class="highlight" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13.2px; margin-top: 0px; margin-bottom: 0px; overflow: auto; color: rgb(33, 37, 41); background-color: rgb(240, 240, 240); font-variant-ligatures: normal; orphans: 2; widows: 2; background-position: initial initial; background-repeat: initial initial;"><code style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: inherit; color: inherit; word-break: normal;" class=""><span class="n" style="box-sizing: border-box;">cfg</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="p" style="box-sizing: border-box;">[];</span>
<span class="n" style="box-sizing: border-box;">cfg</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">headmodel</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="n" style="box-sizing: border-box;">headmodel</span><span class="p" style="box-sizing: border-box;">;</span>
<span class="n" style="box-sizing: border-box;">cfg</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">sourcemodel</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="n" style="box-sizing: border-box;">leadfield</span><span class="p" style="box-sizing: border-box;">;</span>
<span class="n" style="box-sizing: border-box;">cfg</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">method</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="s1" style="box-sizing: border-box; color: rgb(64, 112, 160);">'lcmv'</span><span class="p" style="box-sizing: border-box;">;</span>
<span class="n" style="box-sizing: border-box;">cfg</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">lcmv</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">projectmom</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="s1" style="box-sizing: border-box; color: rgb(64, 112, 160);">'yes'</span><span class="p" style="box-sizing: border-box;">;</span> <span class="c1" style="box-sizing: border-box; color: rgb(96, 160, 176); font-style: italic;">% project dipole time series in direction of maximal power (see below)</span>
<span class="n" style="box-sizing: border-box;">cfg</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">lcmv</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">.</span><span class="n" style="box-sizing: border-box;">kurtosis</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="s1" style="box-sizing: border-box; color: rgb(64, 112, 160);">'yes'</span><span class="p" style="box-sizing: border-box;">;</span> <span class="c1" style="box-sizing: border-box; color: rgb(96, 160, 176); font-style: italic;">% compute kurtosis at each location</span>
<span class="n" style="box-sizing: border-box;">source</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="n" style="box-sizing: border-box;">ft_sourceanalysis</span><span class="p" style="box-sizing: border-box;">(</span><span class="n" style="box-sizing: border-box;">cfg</span><span class="p" style="box-sizing: border-box;">,</span> <span class="n" style="box-sizing: border-box;">cov_matrix</span><span class="p" style="box-sizing: border-box;">);</span></code></pre>
<div class=""><br class="">
</div>
</div>
<div class="">Of <a href="http://www.fieldtriptoolbox.org/tutorial/epilepsy/" class="">http://www.fieldtriptoolbox.org/tutorial/epilepsy/</a>. And I think I run out of memory because with “top” I can see the computer stops responding when near 85% of RAM memory(16GB). </div>
<div class=""><br class="">
</div>
<div class="">I cannot report any error because the only problem seems to be that either wrong code or wrong data or I don’t know. </div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Andrade. </div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>