フィルターのクリア

I have used a Loop as-- bitsIn = randi([0 1], bitsPerSub​Carrier*nu​mDataCarri​ers, 1); symbolsIn = qamMapper(bitsIn); why matlb shows an error like-- Error in fofdmn1 (line 60) symbolsIn = qamMapper(bitsIn);? Please answer me if any alternative.

1 回表示 (過去 30 日間)
bitsIn = randi([0 1], bitsPerSubCarrier*numDataCarriers, 1);
symbolsIn = qamMapper(bitsIn);
why matlb shows an error like--
Error in fofdmn1 (line 60) symbolsIn = qamMapper(bitsIn);
  6 件のコメント
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 20 日
編集済み: Walter Roberson 2017 年 10 月 20 日
%QAM symbol mapper
qamMapper = comm.RectangularQAMModulator( ...
'ModulationOrder', 2^bpsc, 'BitInput', true, ...
'NormalizationMethod', 'Average power');
%Set up a figure for spectrum plot
hFig = figure('Position', figposition([46 50 30 30]), 'MenuBar', 'none');
axis([-0.5 0.5 -500 -20]);
hold on;
grid on;
xlabel('Normalized Frequecny');
ylabel('PSD(dBW/HZ)');
title(['F-OFDM',num2str(nrbs),'Resource Block',num2str(rbsize),'Subcarrier each']);
%Generate Data Symbol
bitsIn = randi([0 1], bpsc*ndc, 1);
symbolsIn = qamMapper(bitsIn);
Error message like below:
Array formation and parentheses-style indexing with objects of class 'comm.RectangularQAMModulator' is not allowed.
Use objects of class 'comm.RectangularQAMModulator' only as scalars or use a cell array.
Error in fofdm1 (line 75)
symbolsIn = qamMapper(bitsIn);
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 20 日
Thank you Mr. Walter Roberson for your kind information.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 20 日
You are using a version of MATLAB that is old enough that you need to instead use
symbolsIn = step(qamMapper, bitsIn);
  2 件のコメント
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 20 日
Yes I got the solution.Thank you so much sir.
Walter Roberson
Walter Roberson 2017 年 10 月 20 日
Please Accept my answer if the question is resolved.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by