필터 지우기
필터 지우기

finding the sampling frequency from the following

조회 수: 3 (최근 30일)
u-will-neva-no
u-will-neva-no 2011년 12월 11일
Hi everyone,
I have to work out the sampling frequency. I have set up a vector of time values with 128 elements sampled at twice a second. The signal has to be calculated with five cycles in 63.5s and the code for that is:
t = 0:0.5:63.5; yt = sin(2*pi*t*5/63.5);
How do I get the sampling frequency from this information?
Thanks!

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 11일
Sampling frequency is 1 divided by sample rate.
1 / (M seconds per sample) = ? samples per second
and samples per second is Hz .
  댓글 수: 2
u-will-neva-no
u-will-neva-no 2011년 12월 11일
Looking at wikipedia (which may be wrong) it states that the sampling rate is the same as the sampling frequency. So my sampling rate is either 0.5 or 2...
Walter Roberson
Walter Roberson 2011년 12월 11일
Frequency is always expressed in cycles (or items) per unit time, never in units of time.
Perhaps I should have said,
"Sampling frequency is 1 divided by sample period"

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by