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!