<div dir="ltr">Hi all<div>I am using the resting state MEG signal for constructing the inverse problem by eLoreta, and as it is resting state, the covariance matrix needs to be used, so I am going to use HCP R-noise to construct the covariance matrix, but there are two main issues which I need your help. 1- as I am going to use preprocess data for resting state, do I need process the noise as well? if it is so, I can't find the time series of the noise in the raw data after using ft_read_header. 2- do I need to redefine the time series which add the noise time series at the beginning of the signal and then add the resting state time series so I can use the below code for computing the covariance?</div><div><br></div><div><br></div><div><pre class="inbox-inbox-inbox-inbox-m_-5691756089817090439inbox-inbox-code gmail_msg" style="color:rgb(33,33,33);padding:0.5em;font-size:12px;border:1px dashed rgb(204,204,204);overflow:hidden;font-family:consolas,"andale mono",menlo,monaco,monospace;background-color:rgb(247,249,250);white-space:pre-wrap;width:640px;text-align:justify">cfg= []</pre><pre class="inbox-inbox-inbox-inbox-m_-5691756089817090439inbox-inbox-code gmail_msg" style="color:rgb(33,33,33);padding:0.5em;font-size:12px;border:1px dashed rgb(204,204,204);overflow:hidden;font-family:consolas,"andale mono",menlo,monaco,monospace;background-color:rgb(247,249,250);white-space:pre-wrap;width:640px;text-align:justify">  cfg.covariance = 'yes'; % I dont know how to enter the noise covariance to the data</pre><pre class="inbox-inbox-inbox-inbox-m_-5691756089817090439inbox-inbox-code gmail_msg" style="color:rgb(33,33,33);padding:0.5em;font-size:12px;border:1px dashed rgb(204,204,204);overflow:hidden;font-family:consolas,"andale mono",menlo,monaco,monospace;background-color:rgb(247,249,250);white-space:pre-wrap;width:640px;text-align:justify">cfg.covariancewindow = [-inf 0];
  timelockanalysis = ft_timelockanalysis(cfg, inputdata);
  </pre></div><div><br></div><div>I look forward to hearing from you.</div><div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b><br class="inbox-inbox-Apple-interchange-newline">Mehdy Dousty</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>Hotchkiss Brain Institute</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>University of Calgary</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>HSC Building, Room 2932B</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>3330 Hospital Drive NW</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>Calgary, AB T2N 4N1</b></span></font></div><div style="font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><font face="Helvetica" size="1"><span style="font-size:12px"><b>Email          Mehdy.Dousty@Ucalgary.ca</b></span></font></div></div><div><br></div></div>