thmmplot.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- % Plot dtw path
- close all
- vec1 = rand(1, 20);
- vec2 = rand(1, 30);
- % ====== Solution obtained by DTW
- figure;
- beginCorner = 0;
- endCorner = 0;
- windowWidth = 2;
- [minDist1, DTWpath1] = dtwmex1(vec1, vec2, beginCorner, endCorner, windowWidth);
- dtwplot(vec1, vec2, DTWpath1);
- return
- figure
- [minDist2, DTWpath2] = dtwmex(vec1, vec2, 0, 0);
- dtwplot(vec1, vec2, DTWpath2);