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

zinc(f,m,n)
function mag = zinc(f,m,n)
% mag = zinc(f,m=64,n=1)	Calculate the magnitude response
% of a cascade of n mth-order comb filters at frequencies f.

if nargin<3
    n = 1;
    if nargin<2
	m = 64;
    end
end

mag = abs( sinc(m*f) ./ sinc(f) ).^n;

Contact us