Warning: Error occurred while executing the listener callback for event roiSelectionChanged defined for class roimanager.roiGroup:
Index exceeds the number of array elements. Index must not exceed 0.
Error in nansen.twophoton.roisignals.extractF>validateInputDimensions (line 169)
roiSize = roiArray(1).imagesize;
Error in nansen.twophoton.roisignals.extractF (line 79)
validateInputDimensions(imageStack, roiArray) % Local function
Error in nansen.roisignals.RoiSignalArray/extractSignals (line 621)
signalData = extractF(imageStack, roiArray, options, 'roiInd', roiInd, 'channelNum', channelNum);
Error in nansen.roisignals.RoiSignalArray/updateSignals (line 567)
obj.extractSignals(roiInd, chNo, options);
Error in nansen.roisignals.RoiSignalArray/getSignals (line 424)
obj.updateSignals(roiInd(isMissingSignal), signalName, options)
Error in roisignalviewer.App/updateSignalPlot (line 777)
signalData = obj.RoiSignalArray.getSignals(roiInd, signalName, obj.Parameters, [], forceUpdate);
Error in roisignalviewer.App/onRoiSelectionChanged (line 520)
obj.updateSignalPlot(selectedRoiIdx, 'append');
Error in roimanager/roiDisplay>@(s,e)onRoiSelectionChanged(obj,e) (line 240)
'roiSelectionChanged', @(s, e) onRoiSelectionChanged(obj, e));
Error in roimanager/roiGroup/changeRoiSelection (line 499)
obj.notify('roiSelectionChanged', eventData)
Error in roimanager/roiMap/selectRois (line 1755)
obj.RoiGroup.changeRoiSelection(oldSelection, newSelection, obj)
Error in roimanager/roiMap/hittest (line 1635)
obj.selectRois(roiInd, hFig.SelectionType, true)
Error in roimanager.pointerTool.selectObject/onButtonDown (line 71)
[isRoiSelected, roiInd] = obj.RoiDisplay.hittest(src, event);
Error in uim.interface.pointerManager/onButtonDown (line 192)
obj.currentPointerTool.onButtonDown(src, event)
Error in uim.interface.pointerManager>@(varargin)obj.onButtonDown(varargin{:}) (line 74)
hAxes.ButtonDownFcn = @obj.onButtonDown; % Use button down callback of axes..
> In roimanager/roiGroup/changeRoiSelection (line 499)
In roimanager/roiMap/selectRois (line 1755)
In roimanager/roiMap/hittest (line 1635)
In roimanager.pointerTool/selectObject/onButtonDown (line 71)
In uim.interface/pointerManager/onButtonDown (line 192)
In uim.interface.pointerManager>@(varargin)obj.onButtonDown(varargin{:}) (line 74)
Needs debugging