i have a signal now i want to calculate the DC values of it
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Suppose i have a signal which has AC and DC commponet.........
now i want to calculate the DC signal from it....
I have done low pass filterting as below
Fs = fs; % Sampling Frequency
Fpass = 0.8; % Passband Frequency
Fstop = 1; % Stopband Frequency
Apass = 1; % Passband Ripple (dB)
Astop = 80; % Stopband Attenuation (dB)
match = 'passband'; % Band to match exactly
% Construct an FDESIGN object and call its CHEBY1 method.
h2 = fdesign.lowpass(Fpass, Fstop, Apass, Astop, Fs);
Hd2 = design(h2, 'cheby1', 'MatchExactly', match);
s1_dc = filter (Hd2 , s1);
but still i could not get the required DC signal
what should i do ? do i need to use any other Low pass filter ??
0 commentaires
Réponse acceptée
Honglei Chen
le 5 Fév 2013
Modifié(e) : Honglei Chen
le 5 Fév 2013
Theoretically, the DC component is simply
mean(s1)
If this is not what you want, could you elaborate a little more what you mean by DC signal?
2 commentaires
Honglei Chen
le 5 Fév 2013
what is the meaning of index i? In general DC value is a constant across the signal
Plus de réponses (0)
Communautés
Plus de réponses dans Power Electronics Control
Voir également
Catégories
En savoir plus sur Filter Design dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!