bigstrik
Newbie level 5
- Joined
- Mar 26, 2013
- Messages
- 9
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,346
hi guys,
when i generate a random data in matlab and i want to apply a lowpass filter to these data , how can i identify it's maximum frequency in order to determine the sampling frequency that i will use as an input to my filter
for example :
x=randint(1,10); %%% random bits
a=modem.pskmod(4); %%%% QPSK object
a.inputtype='input';
y=modulate(a,x);
[n m]=butter(10,fc/(fs/2),'low'); %%%% low pass filter object with cutof frequency fc
yt=filter(n,m,y);
................................
so my question is how to determine the maximum frequency of x or y to assign fs in order to use it in 'butter' function ????
also, is the maximum frequency of x is different of that of y or it's the same???
thank you in advance
when i generate a random data in matlab and i want to apply a lowpass filter to these data , how can i identify it's maximum frequency in order to determine the sampling frequency that i will use as an input to my filter
for example :
x=randint(1,10); %%% random bits
a=modem.pskmod(4); %%%% QPSK object
a.inputtype='input';
y=modulate(a,x);
[n m]=butter(10,fc/(fs/2),'low'); %%%% low pass filter object with cutof frequency fc
yt=filter(n,m,y);
................................
so my question is how to determine the maximum frequency of x or y to assign fs in order to use it in 'butter' function ????
also, is the maximum frequency of x is different of that of y or it's the same???
thank you in advance