⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ill.m

📁 matlab讲义
💻 M
字号:
%read data from 'illdata.m'
M=dlmread('illdata.m','\t');
%the data of the illness is in the first row. 
ill=[M(1,:)];
%the data of the normal is in the second row. 
nor=[M(2,:)];
%Histogram for the illness
hist(ill,6);
title('Histogram for the illness');
pause
%Histogram for the normal
hist(nor,7);
title('Histogram for the normal');
% to test that the two means are the same
[h,p,ci]=ttest2(ill,nor,0.05,0),pause
% to test that the two means are the same 
%when the last five data of the illness is delated
ill1=[ill(1:1:25)];
[h,p,ci]=ttest2(ill1,nor,0.05,0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -