please teach me how to change in 2020 version??

8 次查看(过去 30 天)
that codes are 2015 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)));
i want to change these codes 2020 version

回答(2 个)

Steven Lord
Steven Lord 2020-10-2
The modem package was removed from Communications Toolbox in release R2019a. We first noted that modem.qammod and modem.qamdemod would be removed in a future release starting in release R2016a and we started issuing warnings about all the functionality in the modem package being removed in release R2018a. See the table in the Release notes for recommended replacements for those functions.
  6 个评论
Choi
Choi 2020-10-3
thank you but, i was outout of whos but, there aren't anything just was output what my code. i want to know what changed modulate and demodulate.
Choi
Choi 2020-10-3
bc modulate changed analog signal but, in 15version used data signal so, i dont understand anything and they dont explained modulate. only analog signal.... i want to know data signal of modulate

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2020-10-10
hmodem = modem.qammod('M',M, 'SymbolOrder', 'Gray','InputType', 'bit');
digMod1 = modulate(hmodem,x(Nt+1:Nt+Nobit,:));
digMod2 = modulate(hmodem,x(Nt+Nobit+1:Nt+2*Nobit,:));
should be replaced with
digMod1 = qammod(x(Nt+1:Nt+Nobit,:), M, 'gray', 'InputType', 'bit');
digMod2 = qammod(x(Nt+Nobit+1:Nt+2*Nobit,:), M, 'gray', 'InputType', 'bit');
and
hdemodem = modem.qamdemod('M', M,'SymbolOrder','Gray','OutputType','bit');
bitb1 = demodulate(hdemodem,sqrt(42)*ytry(inth(1)));
bitb2 = demodulate(hdemodem,sqrt(42)*ytry(inth(2)));
should be replaced with
bitb1 = qademod(sqrt(42)*ytry(inth(1)), M, 'gray', 'InputType', 'bit');
bitb2 = qademod(sqrt(42)*ytry(inth(2)), M, 'gray', 'InputType', 'bit');

类别

Help CenterFile Exchange 中查找有关 Modulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by