Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc;
- clear;
- close all;
- A=1;
- f=5;
- fs=2000 ;
- tmax=1000;
- t=0:1/fs:1;
- s1=sin(2*pi*f*t);
- kvant1=quantize(s1,2);
- figure(1);
- subplot(211);
- plot(t,s1);
- subplot(212);
- plot(t,kvant1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement