Skip to content

paramsHist Peak Frequency plot #46

Open
@nposdalj

Description

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))

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions