plotting binary data to NRZ signal Format

6 vues (au cours des 30 derniers jours)
khoirul wakiah nasution
khoirul wakiah nasution le 2 Juin 2017
Commenté : namita kathpal le 8 Août 2018
i have a program like below :
a=dec2bin(n,8) . n is random input from 0 to 255. then i want to plot the result of 'a' into NRZ signal format. anyone can help me?

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juin 2017
bits = reshape( (dec2bin(n,8) - '0').', 1, [] );
encoded_bits = unrz(bits)
Now you can plot the encoded bits
  4 commentaires
khoirul wakiah nasution
khoirul wakiah nasution le 5 Juin 2017
ok thank you for the answer. it's very helpful
namita kathpal
namita kathpal le 8 Août 2018
I am running this code and it is showing undefined function or variable unrz. Kindly help me in this regard.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by