How to plot binary input ?
53 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nasser
am 24 Nov. 2011
Beantwortet: salih
am 2 Jan. 2015
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (5)
Wayne King
am 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])
0 Kommentare
Jan
am 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');
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!