Compare Gaussian minimum shift keying (GMSK) and minimum shift keying (MSK) modulation schemes by plotting the eye diagram for GMSK with different pulse lengths and for MSK.
Set the samples per symbol variable.
sps = 8;
Generate random binary data.
data = randi([0 1],1000,1);
Create GMSK and MSK modulators that accept binary inputs. Set the
PulseLength property of the GMSK modulator to
gmskMod = comm.GMSKModulator('BitInput',true,'PulseLength',1, ... 'SamplesPerSymbol',sps); mskMod = comm.MSKModulator('BitInput',true,'SamplesPerSymbol',sps);
Modulate the data using the GMSK and MSK modulators.
modSigGMSK = gmskMod(data); modSigMSK = mskMod(data);
Pass the modulated signals through an AWGN channel having an SNR of
rxSigGMSK = awgn(modSigGMSK,30); rxSigMSK = awgn(modSigMSK,30);
eyediagram function to plot the eye diagrams of the noisy signals. With the GMSK pulse length set to
1, the eye diagrams are nearly identical.
PulseLength property for the GMSK modulator object to
3. Because the property is nontunable, the object must be released first.
release(gmskMod) gmskMod.PulseLength = 3;
Generate a modulated signal using the updated GMSK modulator object and pass it through the AWGN channel.
modSigGMSK = gmskMod(data); rxSigGMSK = awgn(modSigGMSK,30);
With continuous phase modulation (CPM) waveforms, such as GSMK, the waveform depends on values of the previous symbols as well as the present symbol. Plot the eye diagram of the GMSK signal to see that the increased pulse length results in an increase in the number of paths in the eye diagram.
Experiment by changing the
PulseLength parameter of the GMSK modulator object to other values. If you set the property to an even number, you should set
pi/4 and update the offset argument of the
eyediagram function from
0 for a better view of the modulated signal. In order to more clearly view the Gaussian pulse shape, you must use scopes that display the phase of the signal, as described in the CPM Phase Tree example.