how remove unwanted high frequencies from discrete cosine transform in MATLAB?

Status
Not open for further replies.

ghasem_008

Full Member level 4
Joined
Feb 9, 2012
Messages
221
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,298
Visit site
Activity points
2,990
I have one problem.
I have a data vector. for example : data=rand(1,n) ; n=100;
I want to obtain discrete fourier transform of it by DCT command.
and then,by a low-pass filter,remove unwanted high frequencies of larger than f1.
f1 is determined.
and finally , again convert filtered data from discrete frequency domain to data vector (that is in spatial domain,no time domain).
also,
my low-pass filter (Fun(f)) is ideal . i.e :
Fun(f) =1 ; f<f1
Fun(f) = 0 ; f>f1
is there anyone who know " how remove unwanted high frequencies in matlab "?
please give me a code for it.
best wishes...
ghasem
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…