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

📄 mulaw1.m

📁 Speech Quantization_Compare SNRs of speech cs5 with mu-law companding and uniform quantization
💻 M
字号:
function y = mulaw(x, mu)
%MULAW    mu-law compression for signals with
%-----         assumed maximum value of 1
%
%   Usage:   y = mulaw(x, mu);
%
%      x : input signal, column vector with max value 1
%     mu : compression parameter (mu=255 used for telephony)
%
%  see also MULAWINV

%---------------------------------------------------------------
% copyright 1994, by C.S. Burrus, J.H. McClellan, A.V. Oppenheim,
% T.W. Parks, R.W. Schafer, & H.W. Schussler.  For use with the book
% "Computer-Based Exercises for Signal Processing Using MATLAB"
% (Prentice-Hall, 1994).
%---------------------------------------------------------------

Xmax = 1;
y = (Xmax/log(1+mu))*log(1+mu*abs(x)/Xmax).*sign(x);

⌨️ 快捷键说明

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