Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramsHist Peak Frequency plot #46

Open
nposdalj opened this issue Jun 24, 2020 · 0 comments
Open

paramsHist Peak Frequency plot #46

nposdalj opened this issue Jun 24, 2020 · 0 comments

Comments

@nposdalj
Copy link

When running modDet and calculating parameters and plots, I'm seeing two issues with the peak frequency plot.

In lines 108 and 109 (below) from paramsHist, the lower end for the frequency range is reading as zero from the initDefaultParams instead of 5 from the initSpParams for sperm whales. This is leading to a negative or illogical peak frequency.
[~,im] = max(MSP(:,max(1,p.frRange(1)):min(p.frRange(2),size(MSP,2))),[],2); % maximum between flow-100kHz peakFr = fmsp(im + p.frRange(1)-1);

In line 139 (below) from paramsHist, I think savDir should be outDir so the plot can save into the correct folder like the previous plots (also I don't think savDir is a variable anymore?).
saveas(h3,fullfile(savDir,pffn))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant