Skip to content

Commit

Permalink
bugfix, isnumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanharvey1 committed Nov 6, 2024
1 parent ef3b5f1 commit c237ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preProcessing/cut_dat.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function cut_dat(nChannels, maxTime, varargin)

% parse inputs
p = inputParser;
addParameter(p, 'sample_rate', 20000, isnumeric(x));
addParameter(p, 'sample_rate', 20000, @isnumeric);

parse(p, varargin{:})
sample_rate = p.Results.sample_rate;
Expand Down

0 comments on commit c237ab9

Please sign in to comment.