info
Characteristic information about OQPSK Demodulator
Description
returns a structure containing information for the oqpskdemodInfo = info(oqpskdemod)comm.OQPSKDemodulator
System object™.
Examples
Perform OQPSK modulation and demodulation and apply root raised cosine filtering to a waveform.
System initialization
Define simulation parameters and create objects for OQPSK modulation and demodulation.
sps = 12; % samples per symbol bits = randi([0,1],800,1); % transmission data oqpskMod = comm.OQPSKModulator( ... 'BitInput',true, ... 'SamplesPerSymbol',sps, ... 'PulseShape','Root raised cosine'); oqpskDemod = comm.OQPSKDemodulator(oqpskMod);
Waveform transmission and reception
Use the modulator object to apply OQPSK modulation and transmit filtering to the input data.
oqpskWaveform = oqpskMod(bits);
Pass the waveform through a channel.
snr = 0; rxWaveform = awgn(oqpskWaveform,snr);
Use the demodulator object to apply receive filtering and OQPSK demodulation to the waveform.
demodData = oqpskDemod(rxWaveform);
Use the info object function to determine the system delay. As shown, you can also compute the system delay based on the filter span in symbols and the configured data option for the modulator or demodulator.
oqpskdemodInfo = info(oqpskDemod)
oqpskdemodInfo = struct with fields:
DecimationFactor: 12
Delay: 20
delay = oqpskdemodInfo.Delay; delay_mod = (1+oqpskMod.BitInput)*oqpskMod.FilterSpanInSymbols
delay_mod = 20
delay_demod = (1+oqpskDemod.BitOutput)*oqpskDemod.FilterSpanInSymbols
delay_demod = 20
Compute the bit error rate to confirm the quality of the data recovery.
[~, ber] = biterr(bits(1:end-delay),demodData(delay+1:end))
ber = 0
Input Arguments
OQPSK demodulator, specified as a comm.OQPSKDemodulator
System object.
Output Arguments
OQPSK demodulator information, returned as a structure containing these fields. The
OQPSK demodulator object is specified by the input
oqpskdemod.
Decimation factor in samples, returned as a positive scalar.
Demodulator delay between input and output signals in samples at the output sampling rate.
Version History
Introduced in R2012a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)