Tools: Test: thdnf_test_input: correct the noct calculation

To make sure we are using max 1 octave step, we need to use noct+1 to
get noct sections from logspace.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2021-04-01 16:01:33 +08:00
parent 72121fb06c
commit be6777006e
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ id = floor(rand(1,1) * 1e6);
test.fn_in = sprintf('thdnf_test_in_%d.%s', id, test.fmt);
test.fn_out = sprintf('thdnf_test_out_%d.%s', id, test.fmt);
noct = ceil(log(test.f_end/test.f_start)/log(2)); % Max 1 octave steps
test.f = logspace(log10(test.f_start),log10(test.f_end), noct);
test.f = logspace(log10(test.f_start),log10(test.f_end), noct+1);
%% Tone sweep parameters
test.is = 20e-3; % Ignore signal from tone start