Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

MATLAB CODE FOR SAMPLE AND HOLD

CIRCUIT

ups = 4;

fu = fs*ups;
tu = 0:1/fu:1-1/fu;

y = upsample(x,ups);

stem(tu,y,'--x')

hold on
stairs(t,x)
hold off

You might also like