Skip to content

Commit

Permalink
flooring the number of points to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Mar 24, 2023
1 parent e3951b4 commit f977a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eeg_rpsd.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

% setup constants
ncomp = size(EEG.icaweights, 1);
n_points = min(EEG.pnts, EEG.srate);
n_points = floor(min(EEG.pnts, EEG.srate));
try
window = windows('hamming', n_points, 0.54)';
catch
Expand Down

0 comments on commit f977a96

Please sign in to comment.