How to use matlab comm.BPSKModulator system object ?
6 views (last 30 days)
Show older comments
Arvin Seechurn
on 23 Dec 2016
Commented: Laid CHERGUI
on 22 Jun 2021
I am trying to simulate the following codes:
data = randi([0 1],100,1);
bpskModulator = comm.BPSKModulator;
bpskModulator.PhaseOffset = pi/16;
modData = bpskModulator(data);
scatterplot(modData)
but I am getting this error: Array formation and parentheses-style indexing with objects of class 'comm.BPSKModulator' is not allowed. Use objects of class 'comm.BPSKModulator' only as scalars or use a cell array.
Error in testerr (line 4) modData = bpskModulator(data);
Can someone help me please?
1 Comment
divya sai divya sai
on 28 Oct 2020
data = randi([0 3],nframes*numData,numSym,numTxAnt);
modData = qpskMod(data(:));
modData = reshape(modData,nframes*numData,numSym,numTxAnt);
errorRate = comm.ErrorRate;
when i am trying to excute this i am getting Array formation and parentheses-style indexing with objects of class 'comm.QPSKModulator' is not allowed. Use objects of class 'comm.QPSKModulator' only as scalars or use a cell array.
i am getting error in 2nd line can someone assist me please.
Accepted Answer
Walter Roberson
on 23 Dec 2016
You are trying to use a syntax that is new in R2016b with an older MATLAB release. Use
modData = step(bpskModulator, data);
More Answers (0)
See Also
Categories
Find more on BPSK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!