How to find the Sampling Frequency?
82 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rhyston Da Silva
am 9 Okt. 2020
Kommentiert: Aliu Moshood
am 6 Apr. 2022
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 Kommentar
Aliu Moshood
am 6 Apr. 2022
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}.
Akzeptierte Antwort
Ameer Hamza
am 9 Okt. 2020
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 Kommentare
Ameer Hamza
am 9 Okt. 2020
They may want you to compare the frequency content (discrete Fourier transform) of the signal, which can be calculated using fft() of the signal.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!