From 3e7edf4e0292297270cc62f3f4f433758e1bfd5f Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 23 Apr 2020 19:47:49 +0300 Subject: [PATCH] Tools: Tune: Fix mistake in EQ blob plot function The case where blob decoding is requested for single frequency, e.g. 1 kHz the magnitude and group delay vectors did not have size of one frequency. This patch fixes the issue. Signed-off-by: Seppo Ingalsuo --- tools/tune/eq/eq_blob_plot.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tune/eq/eq_blob_plot.m b/tools/tune/eq/eq_blob_plot.m index 8a6795a3c..9709d4a48 100644 --- a/tools/tune/eq/eq_blob_plot.m +++ b/tools/tune/eq/eq_blob_plot.m @@ -114,8 +114,9 @@ end %% Trim avay the duplicated frequency point if f_single eq.f = eq.f(1); + eq.m = eq.m(1, :); if do_group_delay - eq.gd = eq.gd(1); + eq.gd = eq.gd(1, :); end end