I will update this as I add more functions.
Using it for the unit ELEC4402 Communication Systems
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(* Signal power *)
SigPower[expr_, t_] :=
Limit[1/(2 T) Integrate[expr^2, {t, -T, T}], T -> Infinity]
(* Normalized sinc function,default Sinc in Mathematica is not \
normalized *)
SincNorm[Infinity] := Sinc[Pi Infinity]
SincNorm[t_?NumericQ] := Sinc[Pi t]
(* Fourier transform,frequency in Hz *)
FTfreq[varargs__] :=
FourierTransform[varargs,
FourierParameters -> {0, -2*Pi}] /. {Sinc[f_] :>
SincNorm[Simplify[f/Pi]]}
(* Inverse Fourier transform,frequency in Hz *)
IFTfreq[varargs__] :=
InverseFourierTransform[varargs,
FourierParameters -> {0, -2*Pi}] /. {Sinc[f_] :>
SincNorm[Simplify[f/Pi]]}