How to calculate qammod for discrete time using for-loop?

1 Ansicht (letzte 30 Tage)
Gn Gnk
Gn Gnk am 15 Okt. 2019
Hello,i want to use the function qammod to create a 4-QAM signal.
I want to create 4-QAM for the signal y[k] ,k=1,...N (N=100) . The code is for qammod is simple:
M = 4;
x = (0:M-1)';
y = qammod(x,M);
scatterplot(y)
I want to run this for the length of k , so i use for-loop (for i=1:length(k)) .But when i try to find:
y(i) = qammod(x,M);
i keep getting the message :In an assignment A(I) = B, the number of elements in B and I must be the same .
Can anyone help me with this for loop?
Thank you.

Antworten (0)

Kategorien

Mehr zu Test and Measurement finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by