diff --git a/Internal/getCellFiles.m b/Internal/getCellFiles.m index a184d14..c78ee12 100644 --- a/Internal/getCellFiles.m +++ b/Internal/getCellFiles.m @@ -40,7 +40,9 @@ cellNames = {contents.name}'; rightCells=regexpi(cellNames,'[cC]ell\d+.mat','once'); -rightCellNames = cellNames(cell2mat(rightCells)); +ids = find(cell2mat(rightCells)); + +rightCellNames = {cellNames{ids}}; if numel(rightCellNames) == 0 error('No cell files found') diff --git a/viz/makeConsensusArray.m b/viz/makeConsensusArray.m index 1a6b85f..b9a1cad 100644 --- a/viz/makeConsensusArray.m +++ b/viz/makeConsensusArray.m @@ -90,7 +90,7 @@ end % Get the number of cells in the cell directory -cellNames = getCellFiles (cellDir,CONST) +cellNames = getCellFiles (cellDir,CONST); numCells = numel(cellNames); diff --git a/viz/superSeggerViewerGui.m b/viz/superSeggerViewerGui.m index 4ada1aa..462a77c 100644 --- a/viz/superSeggerViewerGui.m +++ b/viz/superSeggerViewerGui.m @@ -1439,7 +1439,7 @@ function makeFieldMovie(handles) [data_r, data_c, data_f] = intLoadDataViewer( handles.dirname_seg, ... handles.contents, ii, handles.num_im, handles.clist, handles.FLAGS); showSeggerImage( data_c, data_r, data_f, handles.FLAGS, handles.clist, handles.CONST, handles.axes1); - drawnow; + drawnow; mov(counter) = getframe; counter = counter + 1; handles.message.String = ['Frame number: ', num2str(ii)];