在MATLAB中创建一个32*32的矩阵,将矩阵分为64组,每组16个元素,随机选取32组赋值为1,其余元素为0 num_pixel=32; idx = randperm(num_pixel*num_pixel); groupNum = 64; num = num_pixel*num_pixel / groupNum; idx = reshape(idx,