www.gusucode.com > stats 源码程序 matlab案例代码 > stats/SampsizepwrExample.m
%% Mean for Given Sample Size and Power % Compute the mean closest to 100 that can be determined to be % significantly different from 100 using a _t_-test with a sample size of % 60 and a power of 0.8. % Copyright 2015 The MathWorks, Inc. mu1 = sampsizepwr('t',[100 10],[],0.8,60)