matlab笔记
1.文件打开读取
[pathname,filename,index]=uigetfile(full('path','*.wav'));
if index==1
absolutepath = strcat(pathname,filename);[^strcat]
[data,Fs]=audioread(absolutepath);
else
warndld('no file selected');
end
2.声音读取
[data,Fs]=audioread(absolutepath);
%sound(data,Fs);
player=audioplayer(data,Fs);
play(player);
pause(len