plotting binary data to NRZ signal Format

12 visualizaciones (últimos 30 días)
khoirul wakiah nasution
khoirul wakiah nasution el 2 de Jun. de 2017
Comentada: namita kathpal el 8 de Ag. de 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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by