plotting binary data to NRZ signal Format

7 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2017-6-2
bits = reshape( (dec2bin(n,8) - '0').', 1, [] );
encoded_bits = unrz(bits)
Now you can plot the encoded bits
  4 个评论
namita kathpal
namita kathpal 2018-8-8
I am running this code and it is showing undefined function or variable unrz. Kindly help me in this regard.

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by