No BSD License  

Highlights from
SD Toolbox

SD Toolbox

by

 

Set of Simulink models for the simulation of sigma-delta modulators.

sinusx(in,f,n)
function outx = sinusx(in,f,n)
%
% Extraction of a sinusoidal signal
%
sinx=sin(2*pi*f*[1:n]);
cosx=cos(2*pi*f*[1:n]);
in=in(1:n);
a1=2*sinx.*in;
a=sum(a1)/n;
b1=2*cosx.*in;
b=sum(b1)/n;
outx=a.*sinx + b.*cosx;

Contact us