sampling discrete time signals in matlab

Status
Not open for further replies.

tavakoli

Member level 3
Joined
Dec 31, 2003
Messages
66
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
669
sampling sine matlab

can somebody tell me what should i do for sampling discrete time signals in matlab
 

I use rcosflt to sample input discrete time signals,
I hope it will help you.
Regard
 

tavakoli said:
can somebody tell me what should i do for sampling discrete time signals in matlab

i think u ask for the CODE...

in that case it is done like...

fs = 1000 (sampling frequency)
f = 10 (signal frequency)
A=2(amplitude)
n=0:100;
wave = A*sin(2*pi*f*n/fs)

this would create 100 sample points wave with sampling rate of 1/fs...

jope u get it... just the forumula... if i understood da question right.. it wud help u... k.

regards,
Arun.
 

If the source is discrete... why don't you just keep values at a regular time.

if "x" is a vector of length "n" containing the data:

new_x=x[1:2:n];

contains the data at half the samplig frequency
 

jpena said:
If the source is discrete... why don't you just keep values at a regular time.
if "x" is a vector of length "n" containing the data:
new_x=x[1:2:n];
contains the data at half the samplig frequency

yeh, in case of discrete, that is enough. i have illustrated sampling from continuous signal only. but where do u get the problem of sampling discrete signals??? thou its not a mistake....

regards,
arunmit168.
 

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…