My name is Heather and I'm looking to denoise my data ahead of a MVPA analysis with leave-one-run-out cross-validation. Since I want my runs to remain independent, I've tried running GLMdenoise on each individual run. However, I get the following error message:
Error using reshape
To RESHAPE the number of elements must not change.
Error in GLMpredictresponses (line 110)
responses{p} = reshape((temp * squish(model{2},dimdata)')',[xyzsize
numtimepoints(p)]); % X x Y x Z x time
Error in GLMestimatemodel (line 460)
modelfit(p) =
GLMpredictresponses(results{p},{design{p}},tr,size(data2{p},1),1); % 1 because
results{p} is in flattened format
Error in GLMdenoisedata (line 641)
xvalfit = GLMestimatemodel(design,data,stimdur,tr,'assume',hrf,-1,opt,[],1);
Error in OBE01Run2 (line 53)
[results,denoiseddata] =
GLMdenoisedata(design,data,stimdur,tr,[],[],[],'Ppt01FiguresRun2');
GLMdenoise runs fine if all runs are included, so I'm not quite sure why reshape becomes an error if the analysis is divided into runs. Does anyone have an idea of what's going wrong here and how to rectify the issue? Any insight is much appreciated.
Best,
Heather
My name is Heather and I'm looking to denoise my data ahead of a MVPA analysis with leave-one-run-out cross-validation. Since I want my runs to remain independent, I've tried running GLMdenoise on each individual run. However, I get the following error message:
Error using reshape
To RESHAPE the number of elements must not change.
Error in GLMpredictresponses (line 110)
responses{p} = reshape((temp * squish(model{2},dimdata)')',[xyzsize
numtimepoints(p)]); % X x Y x Z x time
Error in GLMestimatemodel (line 460)
modelfit(p) =
GLMpredictresponses(results{p},{design{p}},tr,size(data2{p},1),1); % 1 because
results{p} is in flattened format
Error in GLMdenoisedata (line 641)
xvalfit = GLMestimatemodel(design,data,stimdur,tr,'assume',hrf,-1,opt,[],1);
Error in OBE01Run2 (line 53)
[results,denoiseddata] =
GLMdenoisedata(design,data,stimdur,tr,[],[],[],'Ppt01FiguresRun2');
GLMdenoise runs fine if all runs are included, so I'm not quite sure why reshape becomes an error if the analysis is divided into runs. Does anyone have an idea of what's going wrong here and how to rectify the issue? Any insight is much appreciated.