Click here to Skip to main content
12,691,559 members (29,997 online)
Rate this:
Please Sign up or sign in to vote.
See more: Matlab
Hello everybody.

I'm working on a speech processing project "Keyword Spotting" and I need a Matlab code for "Segmental Dynamic time Warping" algorithm

Actually I have 2 strings, the first one is a long string that represents the utterance and the second one is a small string that represents a template keyword.

I have to compare the small string with each portion of the long string.How can I do that?

The approach that I'm working on it uses Segmental Dynamic time Wrapping But I can not understand it.

Can anybody help me?

I need it quickly,
Best regards.Shayan
Posted 14-Aug-12 14:57pm
Updated 14-Aug-12 16:01pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If I understand you correctly, you're trying to find one string within another in Matlab... if so, use strfind()[^]. Be aware that the function is case sensitive, if you want to make it case insensitive, just make both strings either all lower[^] or all upper[^] before making the function call.
Shayan7300 15-Aug-12 1:40am
Hello..Thanks for your answer but I'm was not looking for what you said.
I have to compare 2 vectors of features .this vector are not identical and same...on vector in long and another is short.I have to find out that witch part of the long utterance is much similar to the short one to satisfy a threshold
Albert Holguin 15-Aug-12 10:14am
You did say strings specifically. You should update your question to reflect exactly what you mean.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170117.1 | Last Updated 14 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100