Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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);

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Okt. 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()

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by