Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- clear
- f=1;
- Ts=(1/20)*f;
- n=-10:1:10;
- T=-1:0.1:1;
- %sinus od T
- z=sin(2*pi*f*T);
- figure(2)
- plot(T,z);
- %ZOH
- T1=Ts*n;
- y=sin(2*pi*f*T1);
- stairs(n,y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement