clc
clear
c =cell(5,1)
c{1} = [c{1};[3 4]]
c{2} = [c{2};[1 5]]
%s个区域对应s个矩阵
%for i=1:s
%eval([‘Area’,num2str(i),’=[]’;])
%end
r = 5 % 生成随机点个数
for i=1:r
num = round(rand(1)*50);
D = [D;num]
if num>25
C{1} = [C{1};num]
else
C{2} = [C{2};num]
end
end