help > RE: Extracting denosed timseseries
Mar 11, 2023  12:03 PM | Ramesh Babu MG
RE: Extracting denosed timseseries
Dear Alfonsa,

Thank you verymuch for your clarifications. I have few more questions. What are the variable d1data and d2data conatain? Conditionweights conatins 1x5 cells. What are those values? It will be great help for me if I get a manual explaining about all output files?

And I used the following script to get timeseries (got it from https://www.nitrc.org/forum/message.php?msg_id=18633) but I am geting an error report which I pasted below. Could you please correct it?

w = max(0,conditionweights{1});
idx = find( w>0 );
data_reduced = cellfun(@(x)x(idx,:), data, 'uni',0);
w_reduced = w(idx);
weighted_ts = conn_wdemean(data_reduced, w_reduced).*w_reduced;

I successfully did till last step. But last step I am getting an error which I pasted below.
in the last step I am getting an error
weighted_ts = conn_wdemean(data_reduced, w_reduced).*w_reduced;

"Undefined operator '.*' for input arguments of type 'cell'.
Error in conn_wdemean (line 4)
y=conn_bsxfun(@minus,x,sum(x.*repmat(w,[1,size(x,2)]),1)./max(eps,sum(w)));
>> "

Regards
Ramesh

Threaded View

TitleAuthorDate
Ramesh Babu MG Mar 6, 2023
Alfonso Nieto-Castanon Mar 8, 2023
RE: Extracting denosed timseseries
Ramesh Babu MG Mar 11, 2023