How to Plotting a Binary input?
이전 댓글 표시
%Input signal
clc;
clear all;
d = input('Enter Decimal Input to convert to Binary : ');
byte = dec2bin(d)
%Plotting Input signal
stairs(byte)
I am having to trouble plotting the binary number can anyone help me. It would be appreciated. Thank you,
답변 (1개)
Azzi Abdelmalek
2014년 12월 1일
편집: Azzi Abdelmalek
2014년 12월 1일
d = 89
byte = dec2bin(d)
%Plotting Input signal
stairs(byte-'0','r','linewidth',5)
카테고리
도움말 센터 및 File Exchange에서 Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!