0.015太小了,很多只能包含一个或者没有。用0.05试试。
load matlab.mat
data=data8;
T=fix((data(:,1)-min(data(:,1)))/0.05)+1;
data=[T,data];
data=array2table(data);
G=groupsummary(data,'data1','mean',{'data2','data3','data4','data5'});
data=table2array(G(:,3:end));
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!