How to creat two box plot in one graph use different data?
Mostrar comentarios más antiguos
a=[9 3 5 3 0 10 6 8 4 9 7 3 8 6 6 9 1 8 8 6 10]
b=[10 7 5 6 8 6 4 7 8 8 9 7 10 7 6 6 7 2 8 10 8]
this is the two group number.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 2 de Oct. de 2016
a=[9 3 5 3 0 10 6 8 4 9 7 3 8 6 6 9 1 8 8 6 10];
b=[10 7 5 6 8 6 4 7 8 8 9 7 10 7 6 6 7 2 8 10 8];
boxplot( [a(:), b(:)], [1 * ones(length(a),1); 2 * ones(length(b),1)])
1 comentario
Weiyan Chen
el 2 de Oct. de 2016
Categorías
Más información sobre Box Plots 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!