Skip to content

Commit

Permalink
Merge pull request #7 from DCAN-Labs/develop
Browse files Browse the repository at this point in the history
Re-sync develop and master:
Fixes problem with empty arrays and gets port of resolution changes from GitLab.
  • Loading branch information
kathy-snider authored Jan 26, 2021
2 parents a2d8529 + 2f50b84 commit 9fd8606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab_code/dcan_signal_processing.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ function dcan_signal_processing(config_path)
ix_ol = find(th==0); % find index movers > fd_th
ix_in = find(th==1); % find index low motion number

if ix_in <= 10
if numel(ix_in) <= 10
int_method = 'none';
err_msg = ['WARNING: There are only ', num2str(ix_in), ...
err_msg = ['WARNING: There are only ', num2str(numel(ix_in)), ...
' frames below the fd threshold of ', ...
num2str(fd_th), '. Skipping interpolation.'];
disp(err_msg)
Expand Down

0 comments on commit 9fd8606

Please sign in to comment.