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

polyplot(p,fmt)
function h = polyplot(p,fmt)
%function polyplot(p,fmt)
%Plot a polygon given by the point list p, with format fmt
if nargin < 2 
    fmt = '-';
end
n = size(p,2);
if p(:,n) == p(:,1)
    h = plot( p(1,:), p(2,:), fmt );
else
    h = plot( [p(1,:) p(1,1)], [p(2,:) p(2,1)], fmt );
end

Contact us