Matlab1/3 Octave analysis different with ArtemiS
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 27 Oct 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
le 27 Oct 2023
Réponse acceptée
Catégories
En savoir plus sur Rational Fitting and Time Domain Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
