Info

此问题已关闭。 请重新打开它进行编辑或回答。

Checking if two box plots are significantly different or not.

1 次查看(过去 30 天)

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 个评论
Image Analyst
Image Analyst 2018-10-28
It might be easier for people to help you if you attached the two workbooks.
Say, have you read this link yet?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by