help with bar plotting?
Mostra commenti meno recenti
y=2.84;
x=0.091713;
a=bar(y,x,1);hold on;
z=3.834;
x=1.011;
s=bar(z,x,1)
i want to plot this in bar graph...which means it should correspond with the value. Any help thanks ! what i get is attached. As u can clearly see that the bars are not depicted well, plus they are attached to each other..i want a gap between them
6 Commenti
Azzi Abdelmalek
il 19 Mag 2016
i want to plot this in bar graph...which means it should correspond with the value:
What does that mean?
JL555
il 19 Mag 2016
JL555
il 19 Mag 2016
Star Strider
il 19 Mag 2016
Your code produces the plot in the image.
What is the problem?
JL555
il 19 Mag 2016
JL555
il 19 Mag 2016
Risposte (1)
Jos (10584)
il 19 Mag 2016
Modificato: Jos (10584)
il 19 Mag 2016
Plot them in a single statement. Concatenate the X-values and the Y-values to do that:
X = [2.84 3.834];
Y = [0.091713 1.011];
s=bar(X,Y,1)
2 Commenti
JL555
il 19 Mag 2016
Jos (10584)
il 20 Mag 2016
Modificato: Jos (10584)
il 20 Mag 2016
Did you read the documentation/help of bar?
bar(X,Y,0.8)
Categorie
Scopri di più su Discrete Data Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!