MATLAB: How to find the Sampling Frequency

audioreadfsimporting sound file.MATLABsampling frequencysampling ratesignal analysis

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?

Best Answer

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.