Code covered by the BSD License  

Highlights from
Delta Sigma Toolbox

image thumbnail

Delta Sigma Toolbox

by

 

14 Jan 2000 (Updated )

High-level design and simulation of delta-sigma modulators

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

y=dbm(v,R)
function y=dbm(v,R)
% dbm(v,R=50) = 10*log10(v^2/R*1000)  The equivalent in dBm of an rms voltage v
if isempty(v)
    return
end
if nargin<2
    R = 50;
end
y = -Inf*ones(size(v));
nonzero = v~=0;
y(nonzero) = 10*log10(abs(v(nonzero).^2)/R)+30;

Contact us