<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 Jan-Mathijs, 
<div class=""><br class="">
</div>
<div class="">First of, thank you for your fast response! I am relatively new to working with Matlab, therefore excuse me if I pose some rather obvious questions. </div>
<div class=""><br class="">
</div>
<div class="">My goal is to analyse the power spectra of local field potential data (recorded from a DBS system in the STN of patients) and compare this between certain conditions. I was planning on using a number of FieldTrip functions and build my analysis
 pipeline with these. Therefore, I wanted to use: ft_definetrial (optional) -> ft_preprocessing -> ft_freqanalysis -> ft_freqstatistics -> functions in order to visualise the results of these analyses. However, regardless of what functions I try to use and
 what I am inserting in the cfg structure, I always end up with the same error message: </div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Insufficient number of outputs from right hand side of equal sign to satisfy assignment.</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Error in ft_version (line 154)</div>
<div class="">       <span class="Apple-tab-span" style="white-space:pre"> </span>
ftver = tmp.Version;</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Error in ft_preamble_init (line 50)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>[FjmoT6aA_ft_ver, FjmoT6aA_ft_path] = ft_version;</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Error in ft_preamble (line 83)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>evalin('caller', full_cmd);</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Error in ft_preprocessing (line 186)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>ft_preamble init</div>
<div class=""><br class="">
</div>
<div class="">Since I get the same error message using different functions, I would imagine it is caused by the data structure of the LFP data. Does the data have to be in a specific form in order to use the FieldTrip functions? Currently, the data is stored
 in a 1 x 13000 (depending on the length of the trial) double variable with a sampling frequency of 250hz. Each condition is stored in a separate variable.</div>
<div class=""><br class="">
</div>
<div class="">I can also attach screenshots or parts of the script I used.</div>
<div class=""><br class="">
</div>
<div class="">Best Regards</div>
<div class="">Fabyen</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 24. Mar 2021, at 12:16, Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Dear Fabyen,</div>
<div class=""><br class="">
</div>
<div class="">Welcome on board! In order to be able to efficiently help you and put you on the right track, we probably need a little bit more information to go on.</div>
<div class=""><br class="">
</div>
<div class="">The error you report is low-level matlab, suggesting that you (or matlab down the road) try/tries to do something like <some-output-arguments> = functionname(<some-input-arguments>).</div>
<div class="">Unless we know what you did exactly it’s all speculation, and hard to point you to a solution or to get you on your way. This would at minimum require you to mention what you try to do in more detail, and to provide us with a complete error stack.</div>
<div class=""><br class="">
</div>
<div class="">However, note that data should not be implemented in a cfg structure. </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<br class="">
<blockquote type="cite" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Dear FieldTrip discussion list, </span>
<div class="" style="caret-color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); orphans: 2; widows: 2;">I am a master student at the University of Amsterdam and for my research internship I have to analyse local field potential data. For that, I was planning on using the FieldTrip toolbox.
 However, when I try to implement my data in the cfg structure and use functions of the toolbox (such as ft_preprocessing and ft_freqanalysis) I always end up with the error: “<span class=""><font face="Slack-Lato, appleLogo, sans-serif" class="">Insufficient
 number of outputs from right hand side of equal sign to satisfy assignment.<span class="" style="caret-color: rgb(29, 28, 29);">”. Does someone know why that might be the case or what kind of data structure is accepted in the FieldTrip functions?</span></font></span></div>
<div class="" style="caret-color: rgb(0, 0, 0); orphans: 2; widows: 2;"><span class=""><font face="Slack-Lato, appleLogo, sans-serif" class=""><span class="" style="caret-color: rgb(29, 28, 29);"><br class="">
</span></font></span></div>
<div class="" style="caret-color: rgb(0, 0, 0); orphans: 2; widows: 2;"><span class=""><font face="Slack-Lato, appleLogo, sans-serif" class=""><span class="" style="caret-color: rgb(29, 28, 29);">I would appreciate it greatly if someone could help me with this
 issue! </span></font></span></div>
<div class="" style="caret-color: rgb(0, 0, 0); orphans: 2; widows: 2;"><font face="Slack-Lato, appleLogo, sans-serif" class=""><span class="" style="caret-color: rgb(29, 28, 29);">Best Regards</span></font></div>
<div class="" style="caret-color: rgb(0, 0, 0); orphans: 2; widows: 2;"><font face="Slack-Lato, appleLogo, sans-serif" class=""><span class="" style="caret-color: rgb(29, 28, 29);">Fabyen Ragalmuto</span></font></div>
<span style="caret-color: rgb(0, 0, 0);" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0);" class="">
<span style="caret-color: rgb(0, 0, 0);" class="">fieldtrip mailing list</span><br style="caret-color: rgb(0, 0, 0);" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0);" class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></blockquote>
</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>