Professional Documents
Culture Documents
>> plot(fx)
??? Error using ==> plot
Conversion to double from tf is not possible.
>> x=[-pi, -3, -2, -1, -0.5, -0.05, -0.00000001, 0, 0.05, 1, 2, 3, pi]
x =
Columns 1 through 7
-3.1416 -3.0000 -2.0000 -1.0000 -0.5000 -0.0500 -0.0000
Columns 8 through 13
0 0.0500 1.0000 2.0000 3.0000 3.1416
>> y=[0, 0, 0, 0, 0, 0, 0, pi, pi, pi, pi, pi, pi]
y =
Columns 1 through 7
0 0 0 0 0 0 0
Columns 8 through 13
3.1416 3.1416 3.1416 3.1416 3.1416 3.1416
>> plot(x,y)
>> help forrie
forrie.m not found.
>> help fourier
--- help for sym/fourier.m ---
FOURIER Fourier integral transform.
F = FOURIER(f) is the Fourier transform of the sym scalar f
with default independent variable x. The default return is
a function of w.
If f = f(w), then FOURIER returns a function of t: F = F(t).
By definition, F(w) = int(f(x)*exp(-i*w*x),x,-inf,inf), where
the integration above proceeds with respect to x (the symbolic
variable in f as determined by FINDSYM).
F = FOURIER(f,v) makes F a function of the sym v instead of
the default w:
FOURIER(f,v) <=> F(v) = int(f(x)*exp(-i*v*x),x,-inf,inf).
FOURIER(f,u,v) makes f a function of u instead of the
default x. The integration is then with respect to u.
FOURIER(f,u,v) <=> F(v) = int(f(u)*exp(-i*v*u),u,-inf,inf).
Examples:
syms t v w x
fourier(1/t) returns i*pi*(Heaviside(-w)-Heaviside(w))
fourier(exp(-x^2),x,t) returns pi^(1/2)*exp(-1/4*t^2)
fourier(exp(-t)*sym('Heaviside(t)'),v) returns 1/(1+i*v)
fourier(diff(sym('F(x)')),x,w) returns i*w*fourier(F(x),x,w)
See also IFOURIER, LAPLACE, ZTRANS.
>> help IFOURIER
--- help for sym/ifourier.m ---
IFOURIER Inverse Fourier integral transform.
f = IFOURIER(F) is the inverse Fourier transform of the scalar sym F
with default independent variable w. The default return is a
function of x. The inverse Fourier transform is applied to a
function of w and returns a function of x: F = F(w) => f = f(x).
If F = F(x), then IFOURIER returns a function of t: f = f(t). By
definition, f(x) = 1/(2*pi) * int(F(w)*exp(i*w*x),w,-inf,inf) and the
integration is taken with respect to w.
f = IFOURIER(F,u) makes f a function of u instead of the default x:
IFOURIER(F,u) <=> f(u) = 1/(2*pi) * int(F(w)*exp(i*w*u,w,-inf,inf).
Here u is a scalar sym (integration with respect to w).
f = IFOURIER(F,v,u) takes F to be a function of v instead of the
default w: IFOURIER(F,v,u) <=>
f(u) = 1/(2*pi) * int(F(v)*exp(i*v*u,v,-inf,inf),
integration with respect to v.
Examples:
syms t u w x
ifourier(w*exp(-3*w)*sym('Heaviside(w)')) returns 1/2/pi/(3-i*t)^2
ifourier(1/(1 + w^2),u) returns
1/2*exp(-u)*Heaviside(u)+1/2*exp(u)*Heaviside(-u)
ifourier(v/(1 + w^2),v,u) returns i/(1+w^2)*Dirac(1,-u)
ifourier(sym('fourier(f(x),x,w)'),w,x) returns f(x)
See also FOURIER, ILAPLACE, IZTRANS.
>> help fourier
--- help for sym/fourier.m ---
FOURIER Fourier integral transform.
F = FOURIER(f) is the Fourier transform of the sym scalar f
with default independent variable x. The default return is
a function of w.
If f = f(w), then FOURIER returns a function of t: F = F(t).
By definition, F(w) = int(f(x)*exp(-i*w*x),x,-inf,inf), where
the integration above proceeds with respect to x (the symbolic
variable in f as determined by FINDSYM).
F = FOURIER(f,v) makes F a function of the sym v instead of
the default w:
FOURIER(f,v) <=> F(v) = int(f(x)*exp(-i*v*x),x,-inf,inf).
FOURIER(f,u,v) makes f a function of u instead of the
default x. The integration is then with respect to u.
FOURIER(f,u,v) <=> F(v) = int(f(u)*exp(-i*v*u),u,-inf,inf).
Examples:
syms t v w x
fourier(1/t) returns i*pi*(Heaviside(-w)-Heaviside(w))
fourier(exp(-x^2),x,t) returns pi^(1/2)*exp(-1/4*t^2)
fourier(exp(-t)*sym('Heaviside(t)'),v) returns 1/(1+i*v)
fourier(diff(sym('F(x)')),x,w) returns i*w*fourier(F(x),x,w)
See also IFOURIER, LAPLACE, ZTRANS.
>>