| Author |
Message |
tavakoli
Joined: 31 Dec 2003 Posts: 72 Helped: 1
|
12 Apr 2004 14:37 sampling discrete time signals in matlab |
|
|
|
| can somebody tell me what should i do for sampling discrete time signals in matlab
|
|
| Back to top |
|
 |
renpzhou
Joined: 29 Nov 2003 Posts: 22 Helped: 1
|
12 Apr 2004 15:41 sampling discrete time signals in matlab |
|
|
|
I use rcosflt to sample input discrete time signals,
I hope it will help you.
Regard
|
|
| Back to top |
|
 |
cedance
Joined: 24 Oct 2003 Posts: 704 Helped: 28 Location: Germany
|
24 Apr 2004 21:03 Re: sampling discrete time signals in matlab |
|
|
|
| tavakoli wrote: |
| 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.
|
|
| Back to top |
|
 |
jpena
Joined: 20 Sep 2004 Posts: 7
|
20 Sep 2004 18:26 sampling discrete time signals in matlab |
|
|
|
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
|
|
| Back to top |
|
 |
cedance
Joined: 24 Oct 2003 Posts: 704 Helped: 28 Location: Germany
|
22 Sep 2004 15:00 Re: sampling discrete time signals in matlab |
|
|
|
| jpena wrote: |
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.
|
|
| Back to top |
|
 |