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?
댓글 수: 0
채택된 답변
Walter Roberson
2017년 6월 2일
https://www.mathworks.com/matlabcentral/fileexchange/41320-line-coding--manchester--unipolar-and-polar-rz--unipolar-nrz File Exchange contribution
bits = reshape( (dec2bin(n,8) - '0').', 1, [] );
encoded_bits = unrz(bits)
Now you can plot the encoded bits
댓글 수: 4
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 Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!