Multiple color bar graph in Matlab
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to plot a multi color bar graph in Matlab
I have the data
x=[1 2 3]
y=[10 20 30 40]
Please find the attachment and solve the query
0 Commenti
Risposta accettata
KSSV
il 20 Mag 2022
x=[1 2 3] ;
y=[10 20 30] ;
c = {'r','g','b'} ;
figure
hold on
for i = 1:3
bar(x(i),y(i),c{i})
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Identification in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!