索引 1.双下标索引 image.png 2.单下标索引 image.png 3.双下标索引转换为单下标索引 单下标索引=sub2ind(size,m,n); 4.单下标索引转换为双下标索引 双下标索引=ind2sub(size,单下标索引); image.png