필터 지우기
필터 지우기

i have a signal now i want to calculate the DC values of it

조회 수: 19 (최근 30일)
Liaquat Ali
Liaquat Ali 2013년 2월 5일
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 ??

채택된 답변

Honglei Chen
Honglei Chen 2013년 2월 5일
편집: Honglei Chen 2013년 2월 5일
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
Liaquat Ali
Liaquat Ali 2013년 2월 5일
I have a signal S1 which has low frequency values till 5 Hz.
Now i have a formula which is
R(i) = log10((s1_ac_dc(i))/s1_dc(i)) / log10((s3_ac_dc(i))/s3_dc(i));
Which means i have to divide the signal value with its DC value......
so for a signal S1 i need its DC value at that point.??
Honglei Chen
Honglei Chen 2013년 2월 5일
what is the meaning of index i? In general DC value is a constant across the signal

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by