Analogue to Digital conversion

Status
Not open for further replies.

adny

Newbie level 4
Joined
Oct 17, 2010
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
Hey all,

I am trying to make a sampling process but I am stuck.

Consider the following case:

t=0:0.01:10;
x=sin(t)

this almost looks like a continuous wave...
with out changing t, i want to make this to a discrete signal...something like we do in thoery as multiplication by a pulse train but i cant do it in matlab...

any help is appreciated
 

this is already a discrete signal,if you take t=0:1:10 for example it will be "more" discrete. use stem(x) instead of plot(x) to see that is it so.
 

...or plot(x,'b.') to see blue dots; plot(x,'b+') to see blue + markers... try "help plot"
 

I want to do an echo cancellation using LMS algorithm...The input should be a discrete signal...right?
Is the one you are saying gonna be the right input?
 

Ah... you mean quantized... just do q=floor((2^n-1)*x)+2^(n-1), where n is the number of bits you want and x is your input between (-1,+1).
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…