How can i get the frequency response from this code:
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
codefanta
am 8 Mär. 2019
Beantwortet: Pranjal Priyadarshi
am 14 Mär. 2019
close all; clc;
load('whitenoize.mat'); %generated white noise
load('whitenoiserec.mat'); %recorded white nosie
x = orgwhite(20000:50000); % extract the white noise part only
y = recwhite(20000:50000)'; % extract the corresponding response to white noise part
h2 = ifft(fft(y)./fft(x)); %to get impulse response
plot(abs(h2));
0 Kommentare
Akzeptierte Antwort
Pranjal Priyadarshi
am 14 Mär. 2019
Frequency response uses an FFT-based algorithm to calculate the Z-transform frequency response of a digital filter. The function “freqz” can be used to find the frequency response. In the simplest form “freqz” accepts the filter coefficient vectors b and a and integer p specifying the number of points at which to calculate the frequency response. For more information on frequency response the following document can be followed:
https://www.mathworks.com/help/signal/ug/frequency-response.html
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!