[HELP] my boxplot shows only one data set!!
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
here is my code, I have 12 set of data as a matrix. and I want to illustrate this data set as series of boxplot in same x-y axis
However, result shows, just one boxplot. I followed the examples but I don't know why I am having this problem... Just one boxplot like this..
I have my code written below the figure
Here is link, that I followed (example 1) http://www.mathworks.com.au/help/symbolic/mupad_ref/plot-boxplot.html
clc;
clear;
data1260 = [21.3, 18.1, 22.4, 23.4, 22.1, 22.6, 21.7, 21.3, 21.6];
data1280 = [17.4, 15.9, 16.9, 17.5, 17.3, 15.3, 17.1];
data1300 = [12.4, 13.9, 11.4, 12.4, 13.4, 14.1, 11.7, 9.7, 12.3];
data1310 = [11.9, 12.3, 12.2, 12.1, 11.4, 13.9, 11.7, 10.8, 12.2];
data1320 = [9.7, 11.8, 10.1, 9.8, 10.4];
data1330 = [10.1, 8.7, 7.9, 9.2, 8.2, 10.5, 9.1, 8.2, 8.8, 9.1];
data1340 = [8.6, 8.7, 7.9, 7.8, 7.7, 8.8, 9.7, 8.3];
data1350 = [5.8, 4.7, 7, 5.8, 6.1, 6.8, 5.2, 6.6, 6, 5.8];
data1400 = [4.0, 4.7, 4.8, 4.7, 4.4, 4.8];
data1450 = [2.8, 2.7, 2.6, 2.7, 2.9, 2.7, 3.2];
data1500 = [1.8, 1.9, 2.1, 2.2, 2.1, 2.4];
b=boxplot([data1260, data1280, data1300, data1310, data1320, data1330, data1340, data1350, data1400, data1450, data1500]);
title('temperature vs height')
xlabel('temperature')
ylabel('height')
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!