What does sampling rate in audiowrite function signify?

조회 수: 1 (최근 30일)
Angel Chavira
Angel Chavira 2019년 7월 2일
답변: Geoff Hayes 2019년 7월 2일
One of the arguments for function audiowrite is the sampling rate fs. If my input data is a column vector, does fs signify how many data points will be represented in each second of the output audio file?
For example, if my column vector is of length 1,000,000 and fs is set to 1,000, will the audio file be 1,000 second long?
I want to save the entegrity of the input vector within the audio file but fear that the sampling frequency will compramise it.

채택된 답변

Geoff Hayes
Geoff Hayes 2019년 7월 2일
Angel - yes, the sample rate is the number of samples per second. So if fs is 1000, then your audio file will be 1000 seconds long (as you stated above).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by