From b46a74f652585e1658e576033bcd7b82b3bd5fb1 Mon Sep 17 00:00:00 2001
From: Renaud Gonce
Date: Fri, 12 Jun 2020 21:24:30 +0200
Subject: [PATCH] Add new file
---
g_GMSK | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 g_GMSK
diff --git a/g_GMSK b/g_GMSK
new file mode 100644
index 0000000..1c66951
--- /dev/null
+++ b/g_GMSK
@@ -0,0 +1,14 @@
+function [out] = g_GMSK(t,K,Tb,BTb)
+% g_GMSK produces the coefficient of a Gaussian filter such as used in GMSK
+% modulation.
+% * inputs: t is a vector used as support for the Gaussian
+% K is a parameter for the Gaussian amplitude
+% Tb is the bit period
+% BTb is the Bandwidth - Bit period product
+% * output: out is a vector containing the filter coefficients
+
+B = BTb/Tb;
+
+out = -K/(2*sqrt(log(2))) * (erf(2*B*pi* (t-Tb/2)/sqrt(log(4))) - erf(2*B*pi* (t+Tb/2)/sqrt(log(4))));
+
+end
\ No newline at end of file
--
GitLab