what is doing in this note (Array formation and parentheses-style indexing with objects of class 'comm.Rect​angularQAM​Modulator' is not allowed. Use objects of class 'comm.Rect​angularQAM​Modulator' only as scalars or use a cell array.)

1 view (last 30 days)
Array formation and parentheses-style indexing with objects of class 'comm.RectangularQAMModulator' is not allowed. Use objects of class 'comm.RectangularQAMModulator' only as scalars or use a cell array.

Answers (1)

Walter Roberson
Walter Roberson on 18 Oct 2017
I suspect you are using something like,
hMod = comm.RectangularQAMModulator('ModulationOrder',64,'BitInput',true);
and then later,
dataMod = hMod(data);
but that you are not using R2016b or later. In R2016a or earlier, you need to use
dataMod = step(hMod, data);

Community Treasure Hunt

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

Start Hunting!