Why I am getting error while using qammod function ?
古いコメントを表示
Hi
I am using matlab R2014a and I using the code below :
%% Simulation Parameters
numBits = 20000;
modOrder = 16;
%% Creat a source signal and apply 16-QAM modulation
srcBits = randi([0 1],numBits,1);
modOut = qammod(srcBits,modOrder,'InputType','Bit','UnitAveragePower',true);
%% Apply AWGN
SNR = 15;
chanOut = awgn(modOut,SNR);
scatterplot(chanOut)
%% Demodulate received signal
demodOut = qamdemod(chanOut,modOrder,'OutputType','Bit','UnitAveragePower',true);
I should have got the figuer above. But I am having the following error instead !
( Note : I run this code while typing my question and got the result above )
Error using qammod (line 28)
Too many input arguments.
and line 28 is found here :
27 - if(nargin>4)
28 - error(message('comm:qammod:numarg2'));
29 - end
thank you
2 件のコメント
Walter Roberson
2024 年 10 月 25 日
You should double-check your help documentation.
I suspect that back in R2014a that there was no support for 'UnitAveragePower'
majdi Khlfalla
2024 年 10 月 26 日
編集済み: majdi Khlfalla
2024 年 10 月 26 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で QAM についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
