Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can i change syntax ?left is 2020 right is 2015 I want to change lines on 22, 23 in 2020 from 2015 but, I don't know how to change it.

1 回表示 (過去 30 日間)
Choi
Choi 2020 年 10 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i want to change syntax so, I changed syntax in 2020 from 2015's version syntax but, it's not working. please teach me my errors. Thank you in advance
  2 件のコメント
madhan ravi
madhan ravi 2020 年 10 月 1 日
編集済み: madhan ravi 2020 年 10 月 1 日
Mind uploading the code, pictures are pointless.
Choi
Choi 2020 年 10 月 2 日
編集済み: madhan ravi 2020 年 10 月 2 日
These codes are in 2015, but i want to change 2020 version
bc it's not working in 2020 version
hmodem = modem.qammod('M',M, 'SymbolOrder', 'Gray','InputType', 'bit');
hdemodem = modem.qamdemod('M', M,'SymbolOrder','Gray','OutputType','bit');
digMod1 = modulate(hmodem,x(Nt+1:Nt+Nobit,:));
digMod2 = modulate(hmodem,x(Nt+Nobit+1:Nt+2*Nobit,:));
bitb1 = demodulate(hdemodem,sqrt(42)*ytry(inth(1)));
bitb2 = demodulate(hdemodem,sqrt(42)*ytry(inth(2)));
bitb123 = demodulate(hdemodem,sqrt(42)*yzf(inth3(1)));
bitb223 = demodulate(hdemodem,sqrt(42)*yzf(inth3(2)));
bitb12 = demodulate(hdemodem,sqrt(42)*ysp(inth2(1)));
bitb22 = demodulate(hdemodem,sqrt(42)*ysp(inth2(2)));
bitb14 = demodulate(hdemodem,sqrt(42)*yml(inth4(1)));
bitb24 = demodulate(hdemodem,sqrt(42)*yml(inth4(2)));

回答 (1 件)

Priysha LNU
Priysha LNU 2020 年 10 月 7 日
The function "qammod" takes a 'data signal' as the first input argument.
y = qammod(x,M,Name,Value) % modulates input signal x by using QAM with the specified modulation order M. Output y is the modulated signal.
The code provided above in comments shows a 'string' ('M') as first input argument instead of a data signal.
Try changing this argument to a signal instead of a string.
Refer to this documentation link for more information.
Similarly for function "qamdemod" takes input signal 'y' for its first argument, not a string ('M').
z = qamdemod(y,M,Name,Value) %returns a demodulated signal, z, given quadrature amplitude modulation (QAM) signal y of modulation order M.
Refer to this documentation link for more information.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!