Code covered by the BSD License  

Highlights from
Delta Sigma Toolbox

image thumbnail

Delta Sigma Toolbox



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

function t = thermometer(x,m)
% t = thermometer(x,m)	t is an m by length(x) matrix wherein the first
% x(i) components of column i are one;
t = zeros(m,length(x));
for i=1:length(x)
    t(1:x(i),i) = ones(x(i),1);

Contact us