From: Mario Fatafehi on
how can i find the fourier transform of this function
t=-2:2;
heaviside(t+1/2) - heaviside(t-1/2)
From: TideMan on
On Apr 7, 10:20 pm, "Mario Fatafehi" <coru...(a)hotmail.com> wrote:
> how can i find the fourier transform of this function
> t=-2:2;
> heaviside(t+1/2) - heaviside(t-1/2)

Look it up in a textbook?
From: Steven Lord on

"Mario Fatafehi" <coruba9(a)hotmail.com> wrote in message
news:hphm92$cg8$1(a)fred.mathworks.com...
> how can i find the fourier transform of this function t=-2:2;
> heaviside(t+1/2) - heaviside(t-1/2)

Is this what you want?

% Requires Symbolic Math Toolbox
syms t
F = heaviside(t+1/2)-heaviside(t-1/2);
symbolicF = fourier(F)

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: Mark Shore on
TideMan <mulgor(a)gmail.com> wrote in message <a236ced4-d078-4984-9a8d-b0acd5eeec80(a)k13g2000yqe.googlegroups.com>...
> On Apr 7, 10:20 pm, "Mario Fatafehi" <coru...(a)hotmail.com> wrote:
> > how can i find the fourier transform of this function
> > t=-2:2;
> > heaviside(t+1/2) - heaviside(t-1/2)
>
> Look it up in a textbook?

Or even... http://en.wikipedia.org/wiki/Heaviside_step_function ?