
Multiple boxplots for a single plot
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hillaryfor2016
el 9 de Feb. de 2015
Comentada: 檮杌
el 6 de Dic. de 2016
I have 8 matrices of nX5 dimensions that I wish to plot as boxplots on the same figure. Ideally the figure will show 8 boxplots for each of the 5 columns (i.e. 40 individual box plots). Ive struggled with trying to get the hold on functionality to work, likewise using a positional variable for each plot. Likewise Im not sure how to 'group' the individual columns from the different matrices.
PS Have attached the variable 'xvar.m' which I wish to boxplot.
0 comentarios
Respuesta aceptada
Kelly Kearney
el 9 de Feb. de 2015
% Some data, 8 x 1 cell array with 100 x 5 arrays
x = cell(8,1);
for ix = 1:8
x{ix} = randn(100,5);
end
% Plot
boxplot2(permute(cat(3, x{:}), [2 3 1]), 1:5)

7 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Geographic Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!