why i am getting blank plot
이전 댓글 표시
% PAM Modulation
M_pam = [2, 4, 8]; % Order of PAM modulation
for i = 1:length(M_pam)
% Generate random binary data
data = randi([0 M_pam(i)-1], 10, 1);
% PAM modulation
mod_signal = pammod(data, M_pam(i));
% Plot passband waveform
figure;
plot(mod_signal);
title(['Passband PAM Modulation, M = ', num2str(M_pam(i))]);
% Plot signal space representation (I-Q)
figure;
scatterplot(mod_signal, 1, 0, 'b*');
title(['Signal Space Representation (I-Q) for PAM, M = ', num2str(M_pam(i))]);
end
댓글 수: 3
Dyuman Joshi
2023년 9월 26일
Check the edit above - I don't see any blank plots.
pooja
2023년 9월 26일
Dyuman Joshi
2023년 9월 26일
How can you have 9 plots when you have only defined 3*2 == 6 plots?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Modulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!











