please teach me how to change in 2020 version??
5 次查看(过去 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
0 个评论
回答(2 个)
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.
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');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!