Thursday, 15 July 2010

matlab - Using boxplot with different length of vectors -


Hi, I try to create a box plot for hourly values ​​of data for differnt months. So in one figure I have a box plot for January February March and so on ... Since the boxplaces are different in each month's hours, I always get an error.

code

  x = [n11 (:, 9) d12 (:, 9) j1 (:, 9) f2 (:, 9)] ; G = [1 2 3 4]; The size of the data:  
  J1 = 744F2 = 624D12 = 744N11 = 720     You can manually add all your data in a single vector in the same vector. 
 

Thanks Mathith

g whose label indicates which group of data points on this line, for example:

  A = Randon (10 , 1); B = Randon (12, 1); C = Randon (4, 1); G = [rep (1, [10, 1]); Repat (2, [12, 1]); Repat (3, [4, 1])]; the figure; Boxplot ([A, B, C], G);  

No comments:

Post a Comment