<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="">
I don’t know about the specific way of importing the data into matlab, but the call to ft_redefinetrial (on line 31 of your script) requires the second input argument to be a
<u class="">data structure</u> that fieldtrip ‘understands’. If it’s not compatible then FieldTrip does not know what to do with it. I suggest that you check the documentation on
<a href="http://www.fieldtriptoolbox.org" class="">www.fieldtriptoolbox.org</a> to get started (e.g. look in the getting started section <a href="https://www.fieldtriptoolbox.org/getting_started/brainvision/" class="">https://www.fieldtriptoolbox.org/getting_started/brainvision/</a> or <a href="https://www.fieldtriptoolbox.org/reference/ft_datatype_raw/" class="">https://www.fieldtriptoolbox.org/reference/ft_datatype_raw/</a>
<div class=""><br class="">
</div>
<div class="">Note, also, that the second input argument into ft_redefinetrial should never be a name of a file, but rather the contents of the file. Alternatively, you could specify cfg.inputfile = dataSet, and omit the second argument in the function call</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="">
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 4 Mar 2022, at 11:05, 오재원 via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;" class="">
</p>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Hello, I'm Jaewon.</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
I'm trying cluster-based permutation test with my EEG data imported from BrainVision analyzer to Matlab.</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
I imported my data this way : <a href="https://urldefense.com/v3/__https://www.youtube.com/watch?v=wyLg40dLwJo__;!!HJOPV4FYYWzcc1jazlU!-qJ8l5xgUbGkuWdckQM2318bRKwuTpnxkmqXHfiu_E4qKGB7TtOzaSSfdLYx3ycsi0Su36IikOzEPLmpJr9Z0Vb8AvzGkT01jOTtFA$" class="">https://www.youtube.com/watch?v=wyLg40dLwJo</a></div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
(I used BVA2Matlab function introduced in the video and I know that BVA2Matlab results in the output form of ft_preprocessing.)</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
However, I encountered the following errors:</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<img></div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
( I gathered data of the first condition in a folder named 'HH'.)</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Why did this happen?</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
All the best,</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Jaewon</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div class=""><br class="webkit-block-placeholder">
</div>
<img src="https://mail.snu.ac.kr/checkread/MTU2OTU1OTU3Ng==/ZmllbGR0cmlwQHNjaWVuY2UucnUubmw=/" width="1px" height="1px" class="">_______________________________________________<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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-qJ8l5xgUbGkuWdckQM2318bRKwuTpnxkmqXHfiu_E4qKGB7TtOzaSSfdLYx3ycsi0Su36IikOzEPLmpJr9Z0Vb8AvzGkT3S-QdmRw$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>