필터 지우기
필터 지우기

anyone help to fix it? Array formation and parentheses-style indexing with objects of class 'comm.OFDMModulator' is not allowed. Use objects of class 'comm.OFDMModulator' only as scalars or use a cell array.

조회 수: 3 (최근 30일)
I'm writing the following lines and getting above error
numSC = 128; % Number of OFDM subcarriers
cpLen = 32; % OFDM cyclic prefix length
ofdmMod = comm.OFDMModulator('FFTLength',numSC,'CyclicPrefixLength',cpLen);
ofdmDemod = comm.OFDMDemodulator('FFTLength',numSC,'CyclicPrefixLength',cpLen);
channel = comm.AWGNChannel('NoiseMethod','Variance', ...
'VarianceSource','Input port');
txSig1 = ofdmMod(st1); % where st1 is matrix of 117 by 1 complex double

답변 (1개)

Steven Lord
Steven Lord 2018년 11월 15일
If you're using a release prior to release R2016b, I believe you will need to call step on the object to perform the operation on the data as stated in the Note at the top of the current release's documentation page for the comm.OFDMModulator object.

카테고리

Help CenterFile Exchange에서 OFDM에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by