Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

separating a part of plot from an original fft plot

조회 수: 2 (최근 30일)
777
777 2012년 3월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
i have a fft plot of an audio file over the range 0 to 3000hz. now i want to separate the 1000 to 2000 hz part of the plot into a diff variable. how to do that...?????
thanks in advance

답변 (1개)

Tom
Tom 2012년 3월 9일
you can use the greater than/ less than symbols to do this: say your frequency data is stored as X, and your FFT data is stored as Y.
Z=Y(X>=1000 & X<=2000)
  댓글 수: 2
777
777 2012년 3월 9일
i had that in mind but the problem here is that fft is stored in a variable which is i dont think a function of frequency.
Dr. Seis
Dr. Seis 2012년 3월 9일
If the the number of data points (N) is even, then:
Fs = 6000;
Nyquist = Fs/2; % i.e., 3000 Hz
df = Fs/N;
X = ifftshift(-Nyquist:df:Nyquist-df);
if N is odd:
X = [(0:df:Nyquist) -1*sort(df:df:Nyquist,'descend')]

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by