Clarifying where Econometrics Toolbox is required for Flocking demo

This commit is contained in:
jlizier 2022-08-30 12:38:10 +10:00
parent 5398785a67
commit 9c2a25492f
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ for fileIndex = 1:length(files)
% The following sometimes breaks I think if too many Nans
[acfHeading, lags] = autocorr(headingXY(2:end,f) - headingXY(1:end-1,f), 'NumLags', numLags);
catch ME
fprintf('ACF Heading broke for file %d fish %d: either you need to install the Econometrics toolbox or there are too many NaNs in the file\n', fileIndex, f);
fprintf('ACF Heading broke for file %d fish %d: either you need to install the Econometrics toolbox (if properties.jidt.autoDynamicCorrelationExclusion = true) or there are too many NaNs in the file\n', fileIndex, f);
continue;
end
acfHeadingsDecayTime(f) = numLags;
@ -120,7 +120,7 @@ for fileIndex = 1:length(files)
try
[acfSpeed, lags] = autocorr(speed(:,f), 'NumLags', numLags);
catch ME
fprintf('ACF Speed broke for file %d fish %d: either you need to install the Econometrics toolbox or there are too many NaNs in the file\n', fileIndex, f);
fprintf('ACF Speed broke for file %d fish %d: either you need to install the Econometrics toolbox (if properties.jidt.autoDynamicCorrelationExclusion = true) or there are too many NaNs in the file\n', fileIndex, f);
continue;
end
acfSpeedDecayTime(f) = numLags;