ruchisahay
Newbie level 2
- Joined
- Aug 28, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 11
i hv problem regarding coding
i have taken a sine signal and quantized it using midtread quantization
but i dont know how to convert that quantized signal into BINARY FORM
Plzzz... help me out asap.heres my coding
i have taken a sine signal and quantized it using midtread quantization
but i dont know how to convert that quantized signal into BINARY FORM
Plzzz... help me out asap.heres my coding
Code:
clc;
close all;
clear all;
t=0:0.01:10;
y=8*sin(4*pi*t);
b=8;
l=2^b;
subplot(3,1,1);
plot(y);
ymin = min(y); ymax = max(y);
Delta = (ymax - ymin)/l;
dec = Delta*[-l/2:-1 0 1:l/2]
subplot(3,1,2);
stem(dec);
Last edited by a moderator: