Hw6_sol - second block y(i)=10*sign(v(i quantize end average output z=conv(y,ones(30,1/30 t=1:length(z plot(t,z title'Response to DC=,num2str(dc

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Code for Problem A.1 L=256; % length of input dc=input( 'Enter DC Input=' ); x=ones(L,1)*dc; u=zeros(L,1); % states are zero v=zeros(L,1); y=zeros(L,1); % simulate structure for i=2:L u(i)=u(i-1)+(x(i)-y(i-1)); % first block v(i)=v(i-1)+(u(i)-y(i-1));
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % second block y(i)=10*sign(v(i)); % quantize end % average output z=conv(y,ones(30,1)/30); t=1:length(z); plot(t,z); title([ 'Response to DC=' ,num2str(dc)]); Output for Problem A.1...
View Full Document

This note was uploaded on 10/30/2009 for the course EE 4541 taught by Professor Na during the Fall '06 term at Kentucky.

Page1 / 3

Hw6_sol - second block y(i)=10*sign(v(i quantize end average output z=conv(y,ones(30,1/30 t=1:length(z plot(t,z title'Response to DC=,num2str(dc

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online