×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

segmentation in matlab

segmentation in matlab

segmentation in matlab

(OP)
How to break down a speech signal into frame of 160 samples, each frame covers 20ms?

RE: segmentation in matlab

what are u on about ?? TM ??

RE: segmentation in matlab

This is untested, but it should give you an ideal of what to do.

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

(OP)
I have tried the above code but there is some error, how to get rid of the error?


??? 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

(OP)
I have sloved the problem by changing it to
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?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources