<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/256444</link>
    <title>MATLAB Central Newsreader - Box car Filter</title>
    <description>Feed for thread: Box car Filter</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 18 Jul 2009 19:54:01 -0400</pubDate>
      <title>Box car Filter</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/256444#666340</link>
      <author>guj </author>
      <description>I have following things&lt;br&gt;
&lt;br&gt;
N=64;&lt;br&gt;
dt=.01;&lt;br&gt;
t=dt*[-N/2:N/2-1]&lt;br&gt;
&lt;br&gt;
Ts=.01;%Sampling time interval&lt;br&gt;
Fs=1/Ts;%Fs=100&lt;br&gt;
&lt;br&gt;
fo=4; %Sampling of a sine wave&lt;br&gt;
w=2*sin(2*pi*fo*t)+2*sin(2*pi*2*t);&lt;br&gt;
freq=[-N/2:N/2-1];&lt;br&gt;
&lt;br&gt;
1.w=Spectra of signal (1 by 64)&lt;br&gt;
2. s=Spectra of spike (1 by 64)&lt;br&gt;
3.C= Convolution of above two (w*s)(127 by 1)&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
I am constructing a box car with&lt;br&gt;
N=64;&lt;br&gt;
dt=.01;&lt;br&gt;
t=dt*[-N/2:N/2-1]&lt;br&gt;
&lt;br&gt;
Ts=.01;%Sampling time interval&lt;br&gt;
Fs=1/Ts;%Fs=100&lt;br&gt;
&lt;br&gt;
fo=4; %Sampling of a sine wave&lt;br&gt;
w=2*sin(2*pi*fo*t)+2*sin(2*pi*2*t);&lt;br&gt;
freq=[-N/2:N/2-1];&lt;br&gt;
&lt;br&gt;
x_range=[0:1:63]&lt;br&gt;
box=zeros(1,64)&lt;br&gt;
select = find(x_range&amp;gt;24 &amp; x_range&amp;lt;40);&lt;br&gt;
box (select)  = ones(size(select))&lt;br&gt;
plot(f,box)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
After that what should i do, how i can multiiply convolved function &lt;br&gt;
which is 127 by 1 with box car which is 1 by 64&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Also&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
How can i do it</description>
    </item>
  </channel>
</rss>

