I'm trying to plot a PAM4 signal. I've generated the signal as:
data = randi([0 1],400,1);
hModulator = comm.PAMModulator(4,'BitInput',true);
modData = step(hModulator, data);
Now, I want to plot the 'modData' to obtain the waveform. I'm getting error while trying to use 'modData' and 'data' as variables for the plot() function. How can I obtain the PAM4 waveform plot?

回答 (1 件)

Harshavardhan Kallam
Harshavardhan Kallam 2018 年 1 月 7 日

0 投票

Hello, If you run the above code and check the length of data and modData, you will see both are of different length.
Try plot(modData, Data(1:200),1)); I hope this will work
Thank You.

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2017 年 3 月 6 日

回答済み:

2018 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by