Thread Subject: Box car Filter

Subject: Box car Filter

From: guj

Date: 18 Jul, 2009 19:54:01

Message: 1 of 1

I have following things

N=64;
dt=.01;
t=dt*[-N/2:N/2-1]

Ts=.01;%Sampling time interval
Fs=1/Ts;%Fs=100

fo=4; %Sampling of a sine wave
w=2*sin(2*pi*fo*t)+2*sin(2*pi*2*t);
freq=[-N/2:N/2-1];

1.w=Spectra of signal (1 by 64)
2. s=Spectra of spike (1 by 64)
3.C= Convolution of above two (w*s)(127 by 1)
4. Now i want to construct my spectra back with mulipying with Box car How can i do it. I dont know how to multiply my constructed box car with C

I am constructing a box car with
N=64;
dt=.01;
t=dt*[-N/2:N/2-1]

Ts=.01;%Sampling time interval
Fs=1/Ts;%Fs=100

fo=4; %Sampling of a sine wave
w=2*sin(2*pi*fo*t)+2*sin(2*pi*2*t);
freq=[-N/2:N/2-1];

x_range=[0:1:63]
box=zeros(1,64)
select = find(x_range>24 & x_range<40);
box (select) = ones(size(select))
plot(f,box)


After that what should i do, how i can multiiply convolved function
which is 127 by 1 with box car which is 1 by 64



Also

Size of C (conv function) in time domain is 1 by 64, as in time domain i have done multiplication now how should i want to convolve this with my FFT of boxcar..so that i can construct the signal back n both domains.

Thanks



How can i do it

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
convolution guj 18 Jul, 2009 15:59:02
reconstruction guj 18 Jul, 2009 15:59:02
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com