[Homer-users] Error displaying HRF when stimulus 2 (of 5 total) is checked

Perdue, Katherine Katherine.Perdue at childrens.harvard.edu
Sun Feb 24 17:23:43 EST 2013
Search archives:

Hi Austin,

How many channels do you have? Have you tried recalculating the HRF, in case the data got corrupted? Do you get the error if you try to display any HRF that is not 1?

-Katherine


________________________________
From: homer-users-bounces at nmr.mgh.harvard.edu [homer-users-bounces at nmr.mgh.harvard.edu] on behalf of austin1 [astoudenmire at earthlink.net]
Sent: Saturday, February 23, 2013 5:26 PM
To: homer-users at nmr.mgh.harvard.edu
Subject: [Homer-users] Error displaying HRF when stimulus 2 (of 5 total) is checked


I have five stimuli (none are named – just defaults to 1-5)
Any suggestions on how to figure out the cause of my error below.
When I try to display HRF for a second stimulus I get the following error:

Index exceeds matrix dimensions.
Error in EasyNIRS_DisplayData (line 139)
                d = procResult.dcAvg(:,:,:,iS) * sclConc;
Error in EasyNIRS>popupmenuCondition_Callback (line 541)
EasyNIRS_DisplayData();
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in EasyNIRS (line 43)
    gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)EasyNIRS('popupmenuCondition_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback


Here is line 135-142 which shows procResult.dcAvg as four dimensions:

   elseif hmr.plotHRF==HRF_RUN_CONST
       procResult = hmr.procResult;
       iS = hmr.stim.CondRunInd(iF,hmr.plotCondition);
       if iS>0
           d = procResult.dcAvg(:,:,:,iS) * sclConc;
           if hmr.plotHRFStdErr==1
               dStd = procResult.dcAvgStd(:,:,:,iS) * sclConc;
           end

When I check procResult I find that procResult.dcAvg is three dimensions:

K>> disp(procResult)
        dcAvg: [221x3x5 double]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20130224/8d65c6ce/attachment.html 


More information about the Homer-users mailing list