Matlab1/3 Octave analysis different with ArtemiS
Mostra commenti meno recenti
Hi All:
I am new in signal processing and I am trying to do a work in noise control and I would like get the same result with ArtemiS did.
My matlab code is:
clear;
fs = 48000.0;
x = load('x.txt');
data = load('data.txt');
result = load('result.txt');
L = 16384; % ???
nfft=8192; % ???
noverlap = 50;
window = hanning(L);
[pxx,f]=pwelch(data, window, noverlap, nfft, fs, 'centered','power');
p = poctave(pxx, fs, f, 'power', 'BandsPerOctave',3, 'FrequencyLimits',[20 20000]);
figure;
plot(x, result, 'r', x, p, 'b');
xlim([-1000 21000])
ylim([-0.1 1.6])
legend('ArtemiS','Matlab')
ArtemiS config is :

This is the result:

Does anyone know why the output are different?
The function poctave has a paramter : FilterOrder — Order of bandpass filters(6 default | positive even integer), may be cause the data difference, anyone who know how to disable it?
2 Commenti
Walter Roberson
il 27 Ott 2023
What is the difference between this and https://www.mathworks.com/matlabcentral/answers/2038221-output-of-1-3-octave-analysis-different-with-artemis?s_tid=srchtitle ?
yingbo
il 27 Ott 2023
Risposta accettata
Categorie
Scopri di più su Measurements and Spatial Audio in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
