Why matlaab shows the error like >>>>> Error in fofdmn1 (line 81) [~,~,paprFOFDM] = PAPR(txSigFOFDM);
조회 수: 1 (최근 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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!