필터 지우기
필터 지우기

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