Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ynic-public
brainstorm3
Commits
724cb05b
Unverified
Commit
724cb05b
authored
Jul 05, 2019
by
Francois
Committed by
GitHub
Jul 05, 2019
Browse files
Merge pull request #224 from mpompolas/master
Matched rasterplot binning with initial time-vector
parents
65c283cb
19a6f1f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
toolbox/process/functions/process_rasterplot_per_neuron.m
View file @
724cb05b
...
...
@@ -131,7 +131,7 @@ function OutputFiles = Run(sProcess, sInputs) %#ok<DEFNU>
nElectrodes
=
size
(
temp
.
ChannelFlag
,
1
);
nBins
=
length
(
tfOPTIONS
.
TimeVector
);
raster
=
zeros
(
length
(
labelsForDropDownMenu
),
nBins
,
nTrials
);
bins
=
linspace
(
temp
.
Time
(
1
),
temp
.
Time
(
end
),
nBins
+
1
);
bins
=
linspace
(
temp
.
Time
(
1
),
temp
.
Time
(
end
),
nBins
);
bst_progress
(
'start'
,
'Raster Plot per Neuron'
,
'Binning Spikes...'
,
0
,
length
(
sCurrentInputs
));
...
...
@@ -168,7 +168,7 @@ function OutputFiles = Run(sProcess, sInputs) %#ok<DEFNU>
% Prepare output file structure
FileMat
.
TF
=
raster
;
FileMat
.
Time
=
diff
(
bins
(
1
:
2
))/
2
+
bins
(
1
:
end
-
1
)
;
FileMat
.
Time
=
tfOPTIONS
.
TimeVector
;
FileMat
.
TFmask
=
true
(
size
(
raster
,
2
),
size
(
raster
,
3
));
FileMat
.
Freqs
=
1
:
size
(
FileMat
.
TF
,
3
);
FileMat
.
Std
=
[];
...
...
@@ -188,7 +188,7 @@ function OutputFiles = Run(sProcess, sInputs) %#ok<DEFNU>
FileMat
.
HeadModelType
=
[];
FileMat
.
nAvg
=
[];
FileMat
.
ColormapType
=
[];
FileMat
.
DisplayUnits
=
Spikes
;
FileMat
.
DisplayUnits
=
'
Spikes
'
;
FileMat
.
Options
=
tfOPTIONS
;
FileMat
.
History
=
[];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment