MATLAB 帮助中心
Phase demodulation
z = pmdemod(y,Fc,Fs,phasedev)
z = pmdemod(y,Fc,Fs,phasedev,ini_phase)
z = pmdemod(y,Fc,Fs,phasedev) demodulates the modulated message signal y using phase modulation.
z
y
Fc
Fs
phasedev
example
z = pmdemod(y,Fc,Fs,phasedev,ini_phase) specifies the initial phase of the demodulated signal.
ini_phase
collapse all
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)')
Phase modulated input signal, specified as vector or matrix. The columns of y represent independent channels.
Data Types: single | double
single
double
Carrier frequency in Hz, specified as a positive scalar.
Data Types: double
Sample rate in Hz, specified as a positive scalar. Fs must be at least 2Fc.
[]
Initial phase of the modulated signal in radians, specified as a real scalar.
Example: pi/4
pi/4
Phase deviation in radians, specified as a positive scalar.
Demodulated signal, returned as a vector or a matrix.
Introduced before R2006a
pmmod | fmmod | fmdemod
pmmod
fmmod
fmdemod
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处