Skip to content

Commit eabd386

Browse files
committed
minor fixes
1 parent 6be6ec4 commit eabd386

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Scripts/Raster_Processing/SortNeuronsCondition.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
function [New_Index,Raster_Condition,RASTER_WHOLE]=SortNeuronsCondition(RASTER,varargin)
99
% Size of the Cell:
1010
[NV,NC]=size(RASTER);
11-
if isempty(varargin{1})
11+
if isempty(varargin)
1212
% RASTER dimensions: Cells x Frames
1313
[NCells,Nframes]=size(RASTER{1});
1414
if NCells>Nframes

Scripts/Useful_General/ActivityMatrixSorted.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
global Names_Conditions;
77
% make it nested function--->
88
% Sort by Activation in each Condition:
9-
[New_Index,Raster_Condition,RASTER_WHOLE]=SortNeuronsCondition(RASTER);
9+
[New_Index,Raster_Condition,RASTER_WHOLE]=SortNeuronsCondition(RASTER,numel(XY(:,1)));
1010
% Plot_Raster_V(RASTER_WHOLE(New_Index,:),fs);
1111
RASTER_WHOLE_Clean=RASTER_WHOLE(New_Index,:);
1212
XY_clean=XY(New_Index,:);

0 commit comments

Comments
 (0)