MATLAB: Sampling Audio at 11025 sample/sec in MATLAB audio How to Sample the audio signal at 11025 samples/second in Matlab? Best Answer See: Record and Play Audio for a full description of the process. Note that SampleRate defines the sampling frequency. Related SolutionsMATLAB: How to calculate the time duration of a .wav format voice signal? This is a fairly straightforward calculation:fs = 44100; % Sampling Rate (samples/sec)tlen = 500E-3; % Time (sec)length_to_cut = tlen * fs % Length = samples/sec * seclength_to_cut = 22050So to discard the first 500 milliseconds, discard the first 22050 samples (1:22050). MATLAB: Length of audio sample Just in case you got a wave file[y, Fs, nbits] = wavread(filename) %load the wav[m d] = wavfinfo(filename) %get the wav informationAnother way to get the length in seconds is:siz = wavread(filename,'size') %siz = [samples channels]siz(1)/Fs %should give you the length in seconds Related QuestionAudio signal sampled dataA strange problem about audio play using MATLAB (Maybe a bug in MATLAB!)How to plot 1000 samples , one sample generating at i mili sec.
Best Answer