plotting binary data to NRZ signal Format

6 ビュー (過去 30 日間)
khoirul wakiah nasution
khoirul wakiah nasution 2017 年 6 月 2 日
コメント済み: namita kathpal 2018 年 8 月 8 日
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 件のコメント
khoirul wakiah nasution
khoirul wakiah nasution 2017 年 6 月 5 日
ok thank you for the answer. it's very helpful
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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by