Why matlab shows an unexpected matlab expression?

in the line>> norm_factor=[1.0;0.7071;0.3162;0.1543]; here I am using R2015a version.

6 件のコメント

KSSV
KSSV 2017 年 10 月 26 日
show us the full code..
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 26 日
編集済み: Walter Roberson 2017 年 10 月 26 日
The full code is>>
data = randint(1000,1,[1,0]); % generating binary data of 1000 bits with ones and zeros
mod_type=input('Enter the modulation type[1 for BPSK,2 for QPSK,3 for 16QAM,4 for 64QAM]: ');
norm_factor=[1.0;0.7071;0.3162;0.1543];
% normalization factors,1.0:BPSK,0.7071:QPSK,0.3162:16QAM,0.1543:64QAM
nc=[1;2;4;6]; % number of bits per subcarrier, 1:BPSK,2:QPSK,4:16QAM,6:64QAM
input_seq = data;
k=norm_factor(mod_type);
mode=nc(mod_type);
Christoph F.
Christoph F. 2017 年 10 月 26 日
Are you sure this is exactly the code that produces the error? It seems to run fine for me (except for not having the randint() and nc() functions).
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 26 日
ok no problem
Jan
Jan 2017 年 10 月 26 日
@Mollah: Does this mean, that the problem is solved?
MOLLAH KHOKON ALI
MOLLAH KHOKON ALI 2017 年 10 月 26 日
編集済み: MOLLAH KHOKON ALI 2017 年 10 月 26 日
Yes sir, my problem has solved.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCommunications Toolbox についてさらに検索

製品

タグ

質問済み:

2017 年 10 月 26 日

編集済み:

2017 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by