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!