matlab - How to Display Audio Information? -
how can display coefficients of audio signal when plotting audio file in matlab?
i new matlab stupid question. have searched similar things haven't come across similar.
first of need read sound. considering have stored in wav format, can use example [x, fs] = wavread('sound_name.wav');
. fs
sample rate , x
matrix of samples [number of samples]x[number of channels]. default read sound in doubles, can changed. see help wavread
details. can display raw waveform ploting it: plot(x);
. or if need spectrum of sound, can window signal , apply fft. in case voicebox toolbox useful: f = enframe(x, hamming(win_len), fix(win_len/2)); sp = rfft(f.'); imagesc(10*log(abs(sp)));
there lots of handy functions in matlab signal processing toolbox.
Comments
Post a Comment