<div dir="ltr">Dear EEGlab Users,<div><br></div><div>I'm quite new to Matlab scripting as I was previously using only GUI version of EEGLab. I was wondering if you can help me with scripting problem. I suppose it's not very complicated, but I have a hard time with finding the solution.</div>
<div><br></div><div>So, here we go - I  have segmented datasets with different number of events in each one. I wanted to divide sets into halves and save them as the 1st and the 2nd half. Up until now I've been doing it by simply using: Eidt -> select data -> epoch range, but it takes ages to do it manually. Is there any way to do it using script, so that Matlab checks number of events in every dataset at first, and then takes the 1st and 2nd half separately?</div>
<div><br></div><div>I would be grateful for any help!</div><div><br></div><div>Greetings,</div><div><br></div><div><br></div><div>Magda<br><br>
</div></div>