Code covered by the BSD License  

Highlights from
Delta Sigma Toolbox

image thumbnail
from Delta Sigma Toolbox by Richard Schreier
High-level design and simulation of delta-sigma modulators

mapQtoR(Z)
function A  = mapQtoR(Z)
% A  = mapQtoR(Z)	Convert a quadrature matrix into its real equivalent.
% Each element in Z is represented by a 2x2 matrix in A: z -> [x -y; y x]
A = zeros(2*size(Z));
A(1:2:end,1:2:end) = real(Z);
A(2:2:end,2:2:end) = real(Z);
A(1:2:end,2:2:end) = -imag(Z);
A(2:2:end,1:2:end) = imag(Z);
return

Contact us