필터 지우기
필터 지우기

Get JUST Sampling Rate

조회 수: 4 (최근 30일)
Andrea
Andrea 2011년 10월 21일
Hi everyone, i know my question could be strange but i really need to get just sampling rate from a wave file. How can i get it ? I think i can use wavread but how can i get JUST sampling rate and not the entire file as a vector. Thank u for your time guys.
Andrea

답변 (3개)

Rick Rosson
Rick Rosson 2011년 10월 22일
Please try the following:
filename = 'myfile.wav';
N = 1;
[ ~, Fs ] = wavread(filename,N);
For more information:
>> doc wavread
HTH.
Rick

Walter Roberson
Walter Roberson 2011년 10월 22일
http://www.mathworks.com/help/techdoc/ref/wavread.html can return the fs even if you just ask for 1 sample to be read. I would even try it asking for 0 samples to see if that would work.

Andrea
Andrea 2011년 10월 22일
IT WORKS! Thank u sooooo much.
ANDREA

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by