How to plot binary input ?
Mostrar comentarios más antiguos
how to plot binary input using matlab?
for example; a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ]
Respuesta aceptada
Más respuestas (5)
Wayne King
el 24 de Nov. de 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
el 24 de Nov. de 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
el 24 de Nov. de 2011
0 votos
2 comentarios
Walter Roberson
el 24 de Nov. de 2011
http://www.mathworks.com/help/techdoc/ref/stairs.html
Nasser
el 25 de Nov. de 2011
salih
el 2 de En. de 2015
0 votos
how polt binary even and odd from for example {0 0 1 1 0 0 }
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!