Clear Filters
Clear Filters

Why matlaab shows the error like >>>>> Error in fofdmn1 (line 81) [~,~,paprFOFDM] = PAPR(txSigFOFDM);

2 views (last 30 days)
I have used the Loop>>> PAPR = comm.CCDF('PAPROutputPort', true, 'PowerUnits', 'dBW'); [~,~,paprFOFDM] = PAPR(txSigFOFDM); disp(['Peak-to-Average-Power-Ratio for F-OFDM = ' num2str(paprFOFDM) ' dB']);
Error message: Array formation and parentheses-style indexing with objects of class 'comm.CCDF' is not allowed. Use objects of class 'comm.CCDF' only as scalars or use a cell array.
Error in fofdmn1 (line 81) [~,~,paprFOFDM] = PAPR(txSigFOFDM);

Accepted Answer

Walter Roberson
Walter Roberson on 20 Oct 2017
Exactly the same reason as before.
In your R2015a version, in every case in which the routine you are offering has a step() method, you need to convert
variable(values)
to
step(variable, values)
You need to stop looking at the examples for releases later than yours. I posted the link to the R2015a documentation already.
Every time you see a "Array formation and parentheses-style indexing with objects ..." message, you should be switching to use step()

More Answers (0)

Community Treasure Hunt

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

Start Hunting!