⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gmsk_mod.m

📁 it s a gmsk modulation
💻 M
字号:
function [I,Q] = gmsk_mod(BURST,Tb,OSR,BT)%% gmsk_mod:   This function accepts a GSM burst bit sequence and%             performs a GMSK modulation of the sequence. The%             modulation is according to the GSM 05.05 recommendations%% SYNTAX:     [i,q] = gmsk_mod(burst,Tb,osr,BT)%% INPUT:      burst   A differential encoded bit sequence (-1,+1)%             Tb      Bit duration (GSM: Tb = 3.692e-6 Sec.)%             osr     Simulation oversample ratio. osr determines the%                     number of simulation steps per information bit%             BT      The bandwidth/bit duration product (GSM: BT = 0.3)%% OUTPUT:     i,q     In-phase (i) and quadrature-phase (q) baseband%                     representation of the GMSK modulated input burst %                     sequence%% SUB_FUNC:   ph_g.m  This sub-function is required in generating the%                     frequency and phase pulse functions.%% WARNINGS:   Sub-function ph_g.m assumes a 3xTb frequency pulse %             truncation time%% TEST(S):    Function tested using the following relations%             %             i)%%             I^2 + Q^2 = Cos(a)^2 + Sin(a)^2 = 1%%             ii)%%             When the input consists of all 1's the resulting baseband% 	      outputs the function should return a sinusoidal signal of%             frequency rb/4, i.e. a signal having a periode time of %             approximately 4*Tb = 4*3.692e-6 s = 1.48e-5 s for GSM%% AUTHOR:   Jan H. Mikkelsen / Arne Norre Ekstr鴐% EMAIL:    hmi@kom.auc.dk / aneks@kom.auc.dk%% $Id: gmsk_mod.m,v 1.5 1998/02/12 10:50:10 aneks Exp $% ACCUIRE GMSK FREQUENCY PULSE AND PHASE FUNCTION%[g,q] = ph_g(Tb,OSR,BT);% PREPARE VECTOR FOR DATA PROCESSING%bits = length(BURST);f_res = zeros(1,(bits+2)*OSR);% GENERATE RESULTING FREQUENCY PULSE SEQUENCE%for n = 1:bits,  f_res((n-1)*OSR+1:(n+2)*OSR) = f_res((n-1)*OSR+1:(n+2)*OSR) + BURST(n).*g;end% CALCULATE RESULTING PHASE FUNCTION%theta = pi*cumsum(f_res);% PREPARE DATA FOR OUTPUT%I = cos(theta);Q = sin(theta);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -