matlab典型信号的表示.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
matlab典型信号的表示

* wavplay:声音播放 WAVPLAY Play sound using Windows audio output device. WAVPLAY(Y,FS) sends the signal in vector Y with sample frequency of FS Hertz to the Windows WAVE audio device. Standard audio rates are 8000, 11025, 22050, and 44100 Hz. WAVPLAY(Y) automatically sets the sample rate to 11025 Hz. For stereo playback, Y should be an N-by-2 matrix. Double precision data samples must be in the range -1.0 = y = 1.0; values outside that range are clipped. * 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. * wavwrite: 将数据写入波表文件 WAVWRITE Write Microsoft WAVE (.wav) sound file. WAVWRITE(Y,FS,NBITS,WAVEFILE) writes data Y to a Windows WAVE file specified by the file name WAVEFILE, with a sample rate of FS Hz and with NBITS number of bits. NBITS must be 8, 16, 24, or 32. Stereo data should be specified as a matrix with two columns. For NBITS 32, amplitude values outside the range [-1,+1] are clipped. WAVWRITE(Y,FS,WAVEFILE) assumes NBITS=16 bits. WAVWRITE(Y,WAVEFILE) assumes NBITS=16 bits and FS=8000 Hz. * 举例 wavwrite(y,Fs,16,c:/yxl/bupt.wav) [yy,Fs,NBITs]=wavread(c:/yxl/bupt.wav) plot(y);hold on;plot(yy,r) 深入题: 采用不同的量化级数存储数据; 读入数据比较听觉效果。 * 作业2 音频数据处理: 生成各音符数据; 选择一首熟悉的乐曲,生成此乐曲数据,并播放; 可扩展上述功能。 录制一段自己的声音,并播放。 * * * * 结果图形 * title函数 help title TITLE Graph title. TITLE(text) adds text at the top of the current axis. 显示当前坐标系的标题。 * 3.1.8 矩形脉冲 * 命令 BOXCAR Boxcar window. WINDOW Window function gateway. stem(window(@rectwin,5)) N1=5;N2=10;N3=5; x=[zeros(1,N1) ones(1,N2) zeros(1,N3)] * 3.2 典型连续时间信号的

文档评论(0)

骨干 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档