📄 demo2.m
字号:
disp('Mini-Projet: Automatic Speaker Recognition');
disp('By Christian Cornaz & Urs Hunkeler (SC)');
disp('Responsible Assistant: Vladan Velisavljevic');
disp(' ');
disp(' ');
[s1 fs1]=wavread('data\train\s1.wav');
[s2 fs2]=wavread('data\train\s2.wav');
%Question 2
disp('> Question 2');
t1 = 0:1/fs1:(length(s1) - 1)/fs1;
subplot(121);
plot(t1, s1), axis([0, (length(s1) - 1)/fs1 -0.4 0.5]);
title('Plot of signal s1.wav');
xlabel('Time [s]');
ylabel('Amplitude (normalized)')
t2=0:1/fs2:(length(s2)-1)/fs2;
subplot(122);
plot(t2,s2);axis([0,(length(s1)-1)/fs1 -0.4 0.5]);
title('plot of signal s2.wav');
pause
close all
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -