please teach me how to change in 2020 version??

4 vues (au cours des 30 derniers jours)
Choi
Choi le 2 Oct 2020
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

Réponses (2)

Steven Lord
Steven Lord le 2 Oct 2020
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 commentaires
Choi
Choi le 3 Oct 2020
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 le 3 Oct 2020
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

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 10 Oct 2020
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');

Community Treasure Hunt

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

Start Hunting!

Translated by