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

2 次查看(过去 30 天)
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);

采纳的回答

Walter Roberson
Walter Roberson 2017-10-20
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()

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by