回复:matlab语言编写程序
这是我编的程序:
disp('开始进行模板训练...')
% filename=strcat('D:\exercise\matlab\try_it\H0.wav');%循环读入1—1,1—2,...1-20
x = wavread('D:\exercise\matlab\try_it\kaideng1.wav')
[x1 x2] = vad(x);
m = mfcc(x);
ref(i).mfcc= m(x1-2:x2-2,:);
ref(i).mfcc = m;
%计算平均语音长度,并求出于平均长度距离最近的语音序列
sum=0;%表示总距离
for i=1:2%取决于选取的声音的个数
length(i)=size(ref(i).mfcc,1);
sum=sum+length(i);
end
average=sum/2;
for i=1:2
tempdistance(i)=abs(ref(i).mfcc-average);%选取距离平均长度最近的语音为临时模板
end
%求得临时模板序列------此时求得临时模板序列为temp
template=ref(i).mfcc;
shortest=tempdistance(i);
for i=2:2
if tempdistance(i)< shorstest
shorstest=tempdistance(i);
template=ref(i).mfcc;
end
end
%把其他的语音向临时模板序列进行DTW规整
%经过调整后,所有的语音序列长度相等
for i=1:2
output(i)=dtw(ref(i).mfcc);
end
%把每帧的参数拿去求平均值
last=output(i);
for i=2:2
last=last+output(i);
end
final=last/2;
帮忙改下,谢谢

贴吧:matlab作者:淡淡的幸福的 2011-11-02 21:36
matlab实现鼠标、键盘控制十字光标移动中,遇到的问题
想要实现和交易平台中的 行情图类似的:鼠标移动到相应位置显示对应数据以及画出十字光标,此时点击键盘右键则十字光标向右移动,点击键盘左键则十字光标向左移动。 鼠标部分已经可以实现左右移动,但键盘仍无法控制移动。 问题如下: 1.我尝试键盘操作时,直接获取鼠标位置。 结果:只能单次移动,例:鼠标位置在x=1处,点击右键x=2,再次点击右键无变化(因为点击右键时都会执行读取鼠标位置操作,导致每次都是从x=1处右移一位);此
贴吧:matlab作者:负者歌行 2023-12-30 18:02
新人求助:奇葩MATLAB编程题
1. (25+*10)编写一个函数模拟“追女孩”,最基本的输入量(你可以根据你想要的函数功能进行扩展)有:男
贴吧:matlab作者:A别跑 2015-10-30 12:53
回复:老哥们 simulink不允许您修改matlab安装区域。请
Your current working folder is:
E:\MATLAB2018B\Program Files\MATLAB\R2018b\bin
Simulink does not permit you to modify the MATLAB installation area.
Please change to a working folder that is not in the MATLAB
installation area and re-try the previous command.
您当前的工作文件夹是:
E:\ MATLAB2018B \ Program Files \ MATLAB \ R2018b \ bin
Simulink不允许您修改MATLAB安装区域。
请更改为MATLAB中没有的工作文件夹
安装区域并重新尝试上一个命令。
您好能具体说一下怎么换吗
贴吧:matlab作者:繁花陌路情殇何 2019-09-15 17:59
常见错误6:使用加速模式( accelerator)时报错
有时需要长时间运行仿真模型,会选择使用加速模式( accelerator),加速模式初期需要花费一定时间编译,但后期的运行速度会比普通模式快很多。 使用加速模式时Simulink会在当前文件夹生成一个.acc的加速文件,但Matlab不允许在它的根目录下写入文件,所以如果当前文件夹/current folder是Matlab的根目录,就会出现形如 “Your current working folder is: E:\MATLAB\R2014b\bin Simulink does not permit you to modify the MATLAB installation area. Please change to a working folder that is not in the MAT
贴吧:simulink电气仿真作者:wml929 2018-04-14 19:32
求赐教,matlab安装成功后一打开就提示如下的错误,求高手告知!
MATLAB has encountered an internal problem and needs to close... 错误报告具体如下: ------------------------------------------------------------------------ Segmentation violation detected at Wed Mar 16 14:19:26 2016 ------------------------------------------------------------------------ Configuration: Crash Decoding : Disabled Crash Mode : continue (default) Current Graphics Driver: Unknown hardware Current Visual : 0x21 (class 4, depth 24) Default Encoding : UTF-8 GNU C Library : 2.21 stable Host Name : starmesh MATLAB Architecture : glnxa64 MATLAB Root : /usr/local/MATLAB/R2015b M
贴吧:matlab作者:kanmiyounyu 2016-03-16 13:35
libsvm在MATLAB下安装下的问题
我在编译make.m文件时出错,求各位大神大大们指教,小女子感激不尽。 >> make C:\MATLAB7\BIN\WIN32\MEX.PL: Error: 'CFLAGS=\$CFLAGS -std=c99' not found. ??? Undefined function or variable 'err'. Error in ==> make at 18 catch err 下面是运行的make.m文件 % This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix function make() try % This part is for OCTAVE if (exist ('OCTAVE_VERSION', 'builtin')) mex libsvmread.c mex libsvmwrite.c mex -I.. svmtrain.c ../svm.cpp svm_model_matlab.c mex -I.. svmpredict.c ../svm.cpp svm
贴吧:svm作者:C贰玖玖 2017-04-06 21:56
非常经典的74条word骨灰级教程!
1. 问:WORD 里边怎样设置每页不同的页眉?如何使不同的章节显示的页眉不同? 答:分节,每节可以设置不同的页眉。文件――页面设置――版式――页眉和页脚――首页不同。 2. 问:请问word 中怎样让每一章用不同的页眉?怎么我现在只能用一个页眉,一改就全部改了? 答:在插入分隔符里,选插入分节符,可以选连续的那个,然后下一页改页眉前,按一下“同前”钮,再做的改动就不影响前面的了。简言之,分节符使得它们独立了。这个工具栏
贴吧:每日一学作者:ainiyi53 2016-06-24 16:32
【求助大神】模糊控制器仿真,在Simulink运行时出现问题
At time 1.0000000000154188, simulation hits (1000) consecutive zero crossings. Consecutive zero crossings will slow down the simulation or cause the simulation to hang. To continue the simulation, you may 1) Try using Adaptive zero-crossing detection algorithm or 2) Disable the zero crossing of the blocks shown in the following table. -------------------------------------------------------------------------------- Number of consecutive zero-crossings : 9981 Zero-crossing signal name : MinmaxInput Block type : MinMax Block path : 'fuzzytransfer/Fuzzy Logic Controller/FIS Wizard/AggMethod1&#
贴吧:matlab作者:00超级大Boss 2016-01-09 22:09
新人求助关于2014a里matlab function的问题
每次模拟的时候这个function都要出错,于是建了个很简单的模型,函数如下: function y = fcn(u) y = u(1)+u(2) 仿真后出现如下错误: 1. Simulink does not have enough information to determine output sizes for this block. If you think the errors below are inaccurate, try specifying types for the block inputs and/or sizes for the block outputs. 2. Index expression out of bounds. Attempted to access element 2. The valid range is 1-1. More information Function 'MATLAB Function' (#62.42.43), line 4, column 12: "2" Launch diagnostic report. 3. Errors occurred during
贴吧:matlab作者:风雨中的绵羊 2014-06-11 22:14

大家都在搜

  • matlab scatter
  • matlab开发软件
  • matlab的try语句
  • matlab handles
  • matlab feval
  • matlab rem
  • matlab sparse函数
  • matlab
  • matlab gcf
  • matlab if
  • matlab 类
  • matlab软件大小
  • matlab怎么用
  • matlab或
  • matlab的应用
  • matlab软件简介
  • matlab做界面