单位矩阵,对角线为1,其余全为0,eye(n) 全1矩阵,矩阵元素全是1,ones (n) 全0矩阵,矩阵元素全是0 ,zeros (n) 以上都是n行n列 以上函数都可以指定矩阵大小 按照行列填入即可ones(4,2)