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

📄 alog.m

📁 ADSP TOOLBOX: Version 2.0 and gui m-files
💻 M
字号:
function y = alog(x,n)
% ALOG Anti-log and dB to gain conversion.
%
%	Z = ALOG(X,N) returns anti-log of X to the base N.
%       Z = ALOG(X)   returns the is anti-log of X to the base e.
%      	If n = 0, ALOG(X,0) returns the gain corresponding to X dB
%
%       ALOG (with no input arguments) invokes the following example:
%
%      	% Compute the gain  corresponding to 20 dB and 8 dB 
%	  >>db = [20 8]
%         >>gain = alog(db,0)


% ADSP Toolbox: Version 2.0 
% For use with "Analog and Digital Signal Processing", 2nd Ed.
% Published by PWS Publishing Co.
%
% Ashok Ambardar, EE Dept. MTU, Houghton, MI 49931, USA
% http://www.ee.mtu/faculty/akambard.html
% e-mail: akambard@mtu.edu
% Copyright (c) 1998



if nargin==0,help alog,disp('Strike a key to see results of above example')
pause,db=[20 8],gain=alog(db,0),return,end

if nargin==1,n=exp(1);
else
if n==0,n=10;x=x/20;end
end
y=n.^x;

⌨️ 快捷键说明

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