pmmod
Phase modulation
Description
Examples
Recover Phase Modulated Signal from AWGN Channel
Set the sample rate. To plot the signals, create a time vector.
fs = 50; t = (0:2*fs+1)'/fs;
Create a sinusoidal input signal.
x = sin(2*pi*t) + sin(4*pi*t);
Set the carrier frequency and phase deviation.
fc = 10; phasedev = pi/2;
Modulate the input signal.
tx = pmmod(x,fc,fs,phasedev);
Pass the signal through an AWGN channel.
rx = awgn(tx,10,'measured');
Demodulate the noisy signal.
y = pmdemod(rx,fc,fs,phasedev);
Plot the original and recovered signals.
figure; plot(t,[x y]); legend('Original signal','Recovered signal'); xlabel('Time (s)') ylabel('Amplitude (V)')
Input Arguments
x
— Input signal
vector | matrix
Input signal, specified as a vector or matrix of positive integers. If
x
is a matrix, pmmod
processes the columns
independently.
Example: sin(2*pi*t) + sin(6*pi*t)
Data Types: double
Fc
— Carrier frequency
positive scalar
Carrier frequency, specified as a positive scalar.
Data Types: double
Fs
— Sample rate
positive scalar
Sample rate, specified as a positive scalar. Fs
must be at
least 2*Fc
.
Data Types: double
ini_phase
— Initial phase
0 (default) | scalar | []
Initial phase of the modulated signal (in radians), specified as a real scalar.
Example: pi/4
Data Types: double
phasedev
— Phase deviation
positive scalar
Phase deviation, specified as a positive scalar in radians.
Data Types: double
Output Arguments
y
— PM-modulated output signal
vector | matrix
Complex baseband representation of a PM-modulated signal, returned as vector or
matrix of complex values. The columns of y
represent independent
channels.
Data Types: double
| single
Complex Number Support: Yes
Version History
Introduced before R2006a
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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)