Skip to content

Commit

Permalink
Update NeuroScope2.m
Browse files Browse the repository at this point in the history
  • Loading branch information
petersenpeter committed Feb 4, 2023
1 parent 715f8b4 commit 9ca5ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NeuroScope2.m
Original file line number Diff line number Diff line change
Expand Up @@ -4966,12 +4966,12 @@ function initData(basepath,basename)
% Generating Probe layout visualization (Channel coordinates)
UI.settings.chanCoordsToPlot = 1:data.session.extracellular.nChannels;
delete(UI.chanCoordsAxes.Children)
if isfield(data.session.extracellular,'chanCoords') && ~isempty(data.session.extracellular.chanCoords.x) && ~isempty(data.session.extracellular.chanCoords.y)
if isfield(data.session.extracellular,'chanCoords') && isfield(data.session.extracellular.chanCoords,'x') &&~isempty(data.session.extracellular.chanCoords.x) && ~isempty(data.session.extracellular.chanCoords.y)
chanCoordsVisualization(data.session.extracellular.chanCoords,UI.chanCoordsAxes);
updateChanCoordsColorHighlight

image_toolbox_installed = isToolboxInstalled('Image Processing Toolbox');
if ~verLessThan('matlab', '9.5') & image_toolbox_installed
if ~verLessThan('matlab', '9.5') && image_toolbox_installed
x_lim_data = [min(data.session.extracellular.chanCoords.x),max(data.session.extracellular.chanCoords.x)];
y_lim_data = [min(data.session.extracellular.chanCoords.y),max(data.session.extracellular.chanCoords.y)];
x_padding = 0.03*diff(x_lim_data);
Expand Down

0 comments on commit 9ca5ed9

Please sign in to comment.