<div dir="ltr"><p class="gmail-MsoListParagraphCxSpFirst" style="text-align:justify;line-height:150%"><font face="times new roman, serif"><span style="font-size:18.6667px">Hi list . I am supposed to compute energy and power features for epoched data-set ( matrix of the format , channels x frames x epochs ) . I would like to know , if the approach mentioned below is correct for computing energy and power. Thank you.</span></font></p><p class="gmail-MsoListParagraphCxSpFirst" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"><b>energy:</b></span></p><p class="gmail-MsoListParagraphCxSpFirst" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">for k=1:epochs<span></span></span></p>
<p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
for i=1:channels<span></span></span></p>
<p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"> for j=1:frames<span></span></span></p>
<p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
energy(i,1,k)=sum([EEG.icaact(i,j,k)]*[EEG.icaact(i,j,k)]);<span></span></span></p>
<p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"> end <span></span></span></p>
<p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
end<span></span></span></p>
<p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">end<b><span></span></b></span></p><p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"><br></span></p><p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%"><font face="times new roman, serif"><span style="font-size:18.6667px"><b>power:</b></span></font></p><p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%"><font face="times new roman, serif"><span style="font-size:18.6667px"><br></span></font></p><p class="gmail-MsoListParagraphCxSpFirst" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">for k=1:epochs<span></span></span></p><p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
for i=1:channels<span></span></span></p><p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"> for
j=1:frames<span></span></span></p><p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
power(i,1,k)=sum([EEG.icaact(i,j,k)]*[EEG.icaact(i,j,k)])/frames;<span></span></span></p><p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif"> end <span></span></span></p><p class="gmail-MsoListParagraphCxSpMiddle" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">
end<span></span></span></p><p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%">
</p><p class="gmail-MsoListParagraphCxSpLast" style="text-align:justify;line-height:150%"><span style="font-size:14pt;line-height:150%;font-family:"times new roman",serif">end<b><span></span></b></span></p></div>