<div dir="ltr"><div class="gmail-gs" style="margin:0px;min-width:0px;padding:0px 0px 20px;width:initial;font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:1y1" class="gmail-ii gmail-gt" style="direction:ltr;margin:8px 0px 0px;padding:0px;font-size:0.875rem;overflow-x:hidden"><div id="gmail-:1y0" class="gmail-a3s gmail-aiL" style="direction:initial;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif;overflow:auto hidden"><div dir="ltr"><div id="m_-153152355178410882gmail-:uf"><div id="m_-153152355178410882gmail-:ub" aria-label="Message Body" role="textbox" aria-multiline="true" aria-controls=":wq" aria-expanded="false" style="direction:ltr;min-height:240px">To fieldtrippers,<div><br></div><div>Hello, I have a question about the raw power using 'mtmfft'. When I put 60 seconds data vs. 120 seconds data with the same sampling rate for simulation, the latter has roughly 1/2 of raw power compared to the formal. </div><div><br></div><div>When I looked into <b>ft_freqanalysis>ft_specest_mtmfft</b></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt"><br></span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">dum = fft(ft_preproc_padding(bsxfun(@times,dat,tap(itap,:)), </span>padtype<span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">, 0, postpad),[], 2);</span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">dum = dum(:,</span>freqboi<span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">);</span></div><div><span style="color:rgb(0,128,19);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">% phase-shift according to above angles</span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt;color:rgb(14,0,255)">if </span>timedelay<span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt"> ~= 0</span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">      dum = dum .* exp(-1i*angletransform);</span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt;color:rgb(14,0,255)">end</span></div><div><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">dum = dum .* sqrt(2 ./ endnsample);</span> </div><div><br></div><div>it normalizes by sqrt(2/N) where N is the number of samples including padding.</div><div><br></div><div>(1) why is it normalizing using square root function but not 2/N?</div><div>(2) why does the raw power still differ when the input differs in length in the time domain (e.g. 60 s vs. 120 s)? </div><div><br></div><div>Please advise. Thank you so much.</div><div><br></div><div>Best regards,</div><div>Woni</div></div></div></div><div class="gmail-yj6qo"></div><div class="gmail-adL"></div></div></div><div class="gmail-hi" style="padding:0px;width:auto;background:rgb(242,242,242);margin:0px;border-bottom-left-radius:1px;border-bottom-right-radius:1px"></div><div class="gmail-WhmR8e" style="clear:both"></div></div></div><br class="gmail-Apple-interchange-newline"></div>