segmentation in matlab
segmentation in matlab
(OP)
How to break down a speech signal into frame of 160 samples, each frame covers 20ms?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: segmentation in matlab
RE: segmentation in matlab
sigdata = your original signal in a row vector
spf = 160; % number of samples required per frame
sigdata_pad = [sigdata zeros(1,spf-mod(length(sigdata),spf)]; % pad the signal with zeros so that its length is a multiple of 160
framed_data = reshape(sigdata,[],spf);
M
RE: segmentation in matlab
??? Error using ==> reshape
Product of known dimensions, 160, not divisible into total number of elements, 11412.
Error in ==> C:\MATLAB6p5\work\test.m
On line 16 ==> framed_data = reshape(sigdata,[],spf);
RE: segmentation in matlab
framed_data = reshape(data_pad,[],spf);
is that right?
also how to plot a graph of it?
I have tried before, but the graph look very strange
so is it possible to represent the framed_data in a waveform/ line graph?