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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)