Borrar filtros
Borrar filtros

How to have more than one box plot in one plot?

4 visualizaciones (últimos 30 días)
BN
BN el 5 de Abr. de 2020
Comentada: Ameer Hamza el 5 de Abr. de 2020
Hey all,
I'm unable to plot more than one box plot in one figure. My data sets are seven n x 1 double (every double array of this seven and I have 7 of them which I want to have boxplots for every 7 data set in one figure, something like this:
Sample data are provided, I have 7 file like this
Thank you all.

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 5 de Abr. de 2020
  4 comentarios
BN
BN el 5 de Abr. de 2020
Thank you it's awesome.
Ameer Hamza
Ameer Hamza el 5 de Abr. de 2020
Glad to be of help.

Iniciar sesión para comentar.

Más respuestas (1)

Florian Floh
Florian Floh el 5 de Abr. de 2020
Concatenating your data into one matrix should do the trick.
Let's say you load two arrays:
load('y.mat');
load('x.mat');
% Concatenate them to a matrix named z
z = [x,y];
% Create a boxplot
boxplot(z);
  1 comentario
BN
BN el 5 de Abr. de 2020
Thanks but I have different x and y row numbers

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by