How to plot binary input ?
63 次查看(过去 30 天)
显示 更早的评论
how to plot binary input using matlab?
for example; a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ]
0 个评论
采纳的回答
更多回答(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])
0 个评论
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');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Transmitters and Receivers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!