⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sigwavwrite.m

📁 Matsig is an object-oriented signal class library for MATLAB 6.5 and later. It implements a signal c
💻 M
字号:
function sigwavwrite(y,varargin)% SIGWAVWRITE Write wave (".wav") sound file.%    SIGWAVWRITE(Y,NBITS,WAVEFILE) Writes data Y to a wave file%    specified by the file name WAVEFILE, with NBITS number of%    bits. NBITS must be 8, 16, 24, or 32. Stereo data should be%    specified as a cell array. For NBITS<32, amplitude values%    outside the range [-1,+1] are clipped.%%    SIGWAVWRITE(Y,WAVEFILE) Assumes NBITS=16 bits.% $Id: sigwavwrite.m 44 2004-08-16 12:39:22Z mairas $if iscell(y)  m=(y{1}.s)';  fs=y{1}.fs;  for i=2:length(y)    m(:,end+1)=(y{i}.s)';  endelse  m=(y.s)';  fs=y.fs;endwavwrite(m,fs,varargin{:});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -