<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><br clear="all"><div>Hi all, </div><div><br></div><div>I have designed an oddball visual experiment. So, I have different numbers of trials in two conditions (standard vs deviant). For doing the time-frequency analysis I have to match the trials counts in each condition. In other words, I should sample from the standard condition to have an identical number of trials to the deviant condition.  One way could be sampling randomly from the standard condition which will give me different results each time I run the code. I wonder whether there is a better way for matching trials count in each condition in time-frequency analysis in MNE.</div><div><br></div><div><br></div><div>Regards, </div><div>-Maryam</div><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><div><br></div></div></div></div></div></div></div></div></div></div></div>