How to find the Sampling Frequency?

조회 수: 111 (최근 30일)
Rhyston Da Silva
Rhyston Da Silva 2020년 10월 9일
댓글: Aliu Moshood 2022년 4월 6일
I have imported a sound file into Matlab using [sound,fs]=audioread('....')
I need to find the sampling frequency. I think that is fs, however when I import a different sound, my fs value does not change? Is there a difference between sampling rate and sampling frequency, and if there is how do I find the sampling frequency from the audiofile imported?
  댓글 수: 1
Aliu Moshood
Aliu Moshood 2022년 4월 6일
Sampling frequency is the inverse of sampling rate. You can also relate this to the physics relation between period and frequency of a wave. According to physics, the relation between period (the time taking for a wave to complete a cycle) and frequency is {frequency = 1/period}.

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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 9일
Yes, fs is the sampling frequency. Sampling frequency and rate are related to each other: frequency = 1/rate. And it is not strange that two files have the same sampling frequency. Most of the audio signals are recorded at a similar sampling frequency, e.g., 44.1 kHz.
  댓글 수: 3
Ameer Hamza
Ameer Hamza 2020년 10월 9일
They may want you to compare the frequency content (discrete Fourier transform) of the signal, which can be calculated using fft() of the signal.
Rhyston Da Silva
Rhyston Da Silva 2020년 10월 11일
Yes, after some investiagtion I also think so. That is what I will do. Thank you again for your assistance.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by