Commit 88d00bc2 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix for 155 / 160 Hz band frequency

parent 13577540
......@@ -91,7 +91,7 @@ end
%% output
if sArgs.createPlot
fgh = ita_plot_freq(data);
combinedFreq = unique([freq; freqVector]);
combinedFreq = unique(round([freq; freqVector]./10).*10);
plotResult = itaResult([[nan(sum(combinedFreq<min(freq)),1); 10.^((refCurve+soundReductionIndex)./20); nan(sum(combinedFreq > max(freq)),1)],[ones(sum(combinedFreq<=500),1)*10.^(soundReductionIndex./20); nan(sum(combinedFreq > 500),1)]],combinedFreq,'freq');
ita_plot_freq(plotResult,'figure_handle',fgh,'axes_handle',gca,'hold');
bar(gca,deficiencies.freqVector,deficiencies.freq,'hist');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment