How to plot binary input ?
Afficher commentaires plus anciens
how to plot binary input using matlab?
for example; a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ]
Réponse acceptée
Plus de réponses (5)
Wayne King
le 24 Nov 2011
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
le 24 Nov 2011
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
le 24 Nov 2011
0 votes
2 commentaires
Walter Roberson
le 24 Nov 2011
http://www.mathworks.com/help/techdoc/ref/stairs.html
Nasser
le 25 Nov 2011
salih
le 2 Jan 2015
0 votes
how polt binary even and odd from for example {0 0 1 1 0 0 }
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!