matlab高手请进!
我想把wav格式的文件转换成小波工具里能用的格式,应该怎么办啊?要能运行到:[c,1]=wavedec(x,5,'db4');不胜感谢!...
我想把wav格式的文件转换成小波工具里能用的格式,应该怎么办啊?
要能运行到:
[c,1]=wavedec(x,5,'db4');
不胜感谢! 展开
要能运行到:
[c,1]=wavedec(x,5,'db4');
不胜感谢! 展开
1个回答
2013-11-22
展开全部
[x,Fs,bits]=wavread('wav文件');
>> help wavread
WAVREAD Read Microsoft WAVE (".wav") sound file.
Y=WAVREAD(FILE) reads a WAVE file specified by the string FILE,
returning the sampled data in Y. The ".wav" extension is appended
if no extension is given. Amplitude values are in the range [-1,+1].
[Y,FS,NBITS]=WAVREAD(FILE) returns the sample rate (FS) in Hertz
and the number of bits per sample (NBITS) used to encode the
data in the file.
[...]=WAVREAD(FILE,N) returns only the first N samples from each
channel in the file.
[...]=WAVREAD(FILE,[N1 N2]) returns only samples N1 through N2 from
each channel in the file.
SIZ=WAVREAD(FILE,'size') returns the size of the audio data contained
in the file in place of the actual audio data, returning the
vector SIZ=[samples channels].
[Y,FS,NBITS,OPTS]=WAVREAD(...) returns a structure OPTS of additional
information contained in the WAV file. The content of this
structure differs from file to file. Typical structure fields
include '.fmt' (audio format information) and '.info' (text
which may describe subject title, copy right, etc.)
Supports multi-channel data, with up to 16 bits per sample.
See also WAVWRITE, AUREAD.
NOTE: This file reader only supports Microsoft PCM data format.
It does not support wave-list data.
See also WAVWRITE, AUREAD, AUWRITE.
x=WAVREAD('wav文件')
直接这个就可以了
>> help wavread
WAVREAD Read Microsoft WAVE (".wav") sound file.
Y=WAVREAD(FILE) reads a WAVE file specified by the string FILE,
returning the sampled data in Y. The ".wav" extension is appended
if no extension is given. Amplitude values are in the range [-1,+1].
[Y,FS,NBITS]=WAVREAD(FILE) returns the sample rate (FS) in Hertz
and the number of bits per sample (NBITS) used to encode the
data in the file.
[...]=WAVREAD(FILE,N) returns only the first N samples from each
channel in the file.
[...]=WAVREAD(FILE,[N1 N2]) returns only samples N1 through N2 from
each channel in the file.
SIZ=WAVREAD(FILE,'size') returns the size of the audio data contained
in the file in place of the actual audio data, returning the
vector SIZ=[samples channels].
[Y,FS,NBITS,OPTS]=WAVREAD(...) returns a structure OPTS of additional
information contained in the WAV file. The content of this
structure differs from file to file. Typical structure fields
include '.fmt' (audio format information) and '.info' (text
which may describe subject title, copy right, etc.)
Supports multi-channel data, with up to 16 bits per sample.
See also WAVWRITE, AUREAD.
NOTE: This file reader only supports Microsoft PCM data format.
It does not support wave-list data.
See also WAVWRITE, AUREAD, AUWRITE.
x=WAVREAD('wav文件')
直接这个就可以了
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询