Info

This question is closed. Reopen it to edit or answer.

Checking if two box plots are significantly different or not.

1 view (last 30 days)

I made a boxplot in matlab for my sample data sets. What i want to see if the data is if the sample data is significantly different from each other. Can anyone give me an idea on how to proceed?

load_threhold_time_for_recruitment_gdnest = 'threhold_time_for_all_goodnest.xlsx';
load_threhold_time_for_recruitment_bdnest = 'threhold_time_for_all_poornest.xlsx';
data_threhold_time_for_recruitment_gdnest = xlsread(load_threhold_time_for_recruitment_gdnest);
data_threhold_time_for_recruitment_bdnest = xlsread(load_threhold_time_for_recruitment_bdnest);
required_data_threhold_time_for_recruitment_gdnest = data_threhold_time_for_recruitment_gdnest(:,2);
required_data_threhold_time_for_recruitment_bdnest = data_threhold_time_for_recruitment_bdnest(:,2);
x1 = required_data_threhold_time_for_recruitment_gdnest; 
x2 = required_data_threhold_time_for_recruitment_bdnest; 
x = [x1 ;x2];
g = [ones(size(x1)); 2*ones(size(x2))];
boxplot(x,g,'Labels',{'Good nest (1 lux)','Poor nest (16 lux)'});
ylabel('Time(seconds)') 
  1 Comment
Image Analyst
Image Analyst on 28 Oct 2018
It might be easier for people to help you if you attached the two workbooks.
Say, have you read this link yet?

Answers (0)

Community Treasure Hunt

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

Start Hunting!