wavread - Read WAVE (.wav) sound file
This MATLAB function loads a WAVE file specified by the string filename,
returning the sampled data in y.
y = wavread(filename)
[y, Fs] = wavread(filename)
[y, Fs, nbits] = wavread(filename)
[y, Fs, nbits, opts] = wavread(filename)
[___] = wavread(filename, N)
[___] = wavread(filename, [N1 N2])
[___] = wavread(___, fmt)
siz = wavread(filename,'size')
audioread - Read audio file
This MATLAB function reads data from the file named filename, and returns
sampled data,y, and a sample rate for that data, Fs.
[y,Fs] = audioread(filename)
[y,Fs] = audioread(filename,samples)
[y,Fs] = audioread(___,dataType)
wavwrite - Write WAVE (.wav) sound file
This MATLAB function writes the data stored in the variable y to a WAVE file
called filename.
wavwrite(y,filename)
wavwrite(y,Fs,filename)
wavwrite(y,Fs,N,filename)
audiowrite - Write audio file
This MATLAB function writes a matrix of audio data, y, with sample rate Fs to a
file called filename.
audiowrite(filename,y,Fs)
audiowrite(filename,y,Fs,Name,Value)
[y,Fs] = wavread(‘ISM.wav’);
[y,Fs] = audioread(‘ISM.wav’);
filename = ‘ISM.wav’;
wavwrite(y,Fs,filename);
audiowrite(filename,y,Fs);
以上是wavwrite函数,audiowrite函数区别