How to plot binary input ?
显示 更早的评论
how to plot binary input using matlab?
for example; a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ]
采纳的回答
更多回答(5 个)
Wayne King
2011-11-24
a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ];
stem(a,'markerfacecolor',[0 0 1]);
set(gca,'ylim',[-1.5 1.5])
Jan
2011-11-24
a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ];
plot(a);
or perhaps:
plot(1:length(a), a, 'o');
Nasser
2011-11-24
0 个投票
2 个评论
Walter Roberson
2011-11-24
http://www.mathworks.com/help/techdoc/ref/stairs.html
Nasser
2011-11-25
salih
2015-1-2
0 个投票
how polt binary even and odd from for example {0 0 1 1 0 0 }
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!