printru2.m
来自「压缩包中的一系列matlab程序实现了“特定人群语音情感识别”这一新颖的研究课题」· M 代码 · 共 52 行
M
52 行
[filepath,filefolder,filterindex] = uigetfile([defolder,user,'\*.wav'], '指定测试文件');
str=[filefolder,filepath(1:end-4)];
set(h_edit2,'string',filepath(1:end-4));
set(h_text3,'string','正在处理...');
set(h_text4,'string','请稍候');
set(h_text5,'string','');
set(h_text6,'string','');
set(h_text7,'string','');
set(h_text8,'string','');
set(h_text9,'string','');
drawnow;
[r,s]=elsort(str,out,paranum);
if r==0;
set(h_text3,'string','判断结果:平静');
end
if r==1;
set(h_text3,'string','判断结果:悲伤');
end
if r==2;
set(h_text3,'string','判断结果:愤怒');
end
if r==3;
set(h_text3,'string','判断结果:高兴');
end
if r==4;
set(h_text3,'string','判断结果:惊讶');
end
set(h_text4,'string','分数:');
set(h_text5,'string',['平静:',num2str(s(1))]);
set(h_text6,'string',['悲伤:',num2str(s(2))]);
set(h_text7,'string',['愤怒:',num2str(s(3))]);
try
set(h_text8,'string',['高兴:',num2str(s(4))]);
set(h_text9,'string',['惊讶:',num2str(s(5))]);
catch
;
end
drawnow;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?