How to draw the multiple bar chart through matlab?

24 visualizaciones (últimos 30 días)
Shrish Bajpai
Shrish Bajpai el 14 de Jun. de 2020
Respondida: Sujay C Sharma el 15 de Jun. de 2020
I want to draw the multiple bar cgarts between bit rates and A,B,C,D,E and F

Respuestas (1)

Sujay C Sharma
Sujay C Sharma el 15 de Jun. de 2020
Hi,
Here is an example of how you can use the bar function to display bar charts of multiple variables with respect to a single variable.
data = [randi([1 3], 5, 1) randi([1 3], 5, 1) randi([1 3], 5, 1) randi([1 3], 5, 1) randi([1 3], 5, 1)];
x = (1:5)';
multibar = bar(x,data);
set(multibar(1), 'FaceColor','r')
set(multibar(2), 'FaceColor','b')
set(multibar(3), 'FaceColor','g')
set(multibar(4), 'FaceColor', 'y')
set(multibar(4), 'FaceColor', 'w')

Categorías

Más información sobre Bar Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by