Click here to Skip to main content
Rate this: bad
good
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 13:57pm
Edited 14-Aug-12 15:01pm
v2

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Shayan7300 at 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 at 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
0 mhegazy94 460
1 Sergey Alexandrovich Kryukov 430
2 Ravi Bhavnani 190
3 Kornfeld Eliyahu Peter 185
4 Shemeemsha RA 160
0 Sergey Alexandrovich Kryukov 7,135
1 OriginalGriff 6,801
2 CPallini 5,350
3 George Jonsson 3,619
4 Gihan Liyanage 2,797


Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 14 Aug 2012
Copyright © CodeProject, 1999-2014
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