www.pudn.com > fundamental.rar > drawfund.m
clear;
clc;
N1=14000;
N2=70;
fid=fopen('ray1.dat','r');
x1=fread(fid,N1,'short');
figure(3);
subplot(211);
plot(x1);
title('语音信号');
ylabel('幅度');
xlabel('样点数');
axis([0,14000,-1500,1500]);
status=fclose(fid);
fid=fopen('fundamental.dat','r');
x2=fread(fid,N2,'short');
subplot(212);
plot(x2);
title('基音周期');
xlabel('帧数');
ylabel('样点数');
axis([0,N2,0,120]);
status=fclose(fid);