How to plot 32PSK modulating signal in time domain?

9 ビュー (過去 30 日間)
Faheem Ur Rehman
Faheem Ur Rehman 2021 年 5 月 27 日
編集済み: Faheem Ur Rehman 2021 年 5 月 27 日
I have found the multiple codes for PSK signal but they plot the consulation diagram, which contain binary values but when i plot them it gives me error.

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 27 日
Did you convert binary values to decimal values? To convert binary values into decimal values bin2dec() can be employed.
  1 件のコメント
Faheem Ur Rehman
Faheem Ur Rehman 2021 年 5 月 27 日
編集済み: Faheem Ur Rehman 2021 年 5 月 27 日
I have generated that 32psk .mat file which i have uploded, But i don't know its correct or not.
function y = psk32Modulator(x,sps)
%psk8Modulator 32-PSK modulator with pulse shaping
% Y = psk8Modulator(X,SPS) 32-PSK modulates the input X, and returns the
% root-raised cosine pulse shaped signal Y. X must be a column vector
% of values in the set [0 7]. The root-raised cosine filter has a
% roll-off factor of 0.35 and spans four symbols. The output signal
% Y has unit power.
persistent filterCoeffs
if isempty(filterCoeffs)
filterCoeffs = rcosdesign(0.35, 4, sps);
end
% Modulate
syms = pskmod(x,32);
% Pulse shape
y = filter(filterCoeffs, 1, upsample(syms,sps));
end

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePSK についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by