Estimate spectrum from AR process
Mostra commenti meno recenti
Hi, I'am going to estimate the spectrum using AR. I have writen this code:
clc, clear all, close all;
N = 10; % length of test input signal
x = 1:N; % test input signal (integer ramp)
a = [1, 0, 1, 0, 0.5]; % transfer function numerator
Y = filter(1, a, x);
th_burg = ar(Y, 4, 'burg', 'Ts', 2000);
th_fb = ar(Y, 4, 'fb', 'Ts', 2000);
th_gl = ar(Y, 4, 'gl', 'Ts', 2000);
th_ls = ar(Y, 4, 'ls', 'Ts', 2000);
th_yw = ar(Y, 4, 'yw', 'Ts', 2000);
Now I must compare the estimated spectrum with the true spectrum for the different model orders, but I dont know how. And what is the true spectrum?
Also I have to compare the results form above with the results I get using FFT. And here is the problem I also dont know to do this.
I hope that someone are able to help me.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Parametric Modeling 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!