对于一个米——- - - - - -n矩阵,kis in the range.For example, for matrices withn大于米,k = 0主对角线由带有索引的元素组成(1,1),(2, 2)、……(m m).的k = 1主对角线上方由带索引的元素组成(1,2),(2、3)、……(m m + 1).的k = 1below the main diagonal consists of the elements with indices(2, 1),(2)、……(m m - 1).
对于不是变长向量(1 × -:或:-by-1)的变大小输入,诊断接头将输入作为一个矩阵,从中提取一个对角向量。即使在运行时输入数组是一个向量,也会发生这种行为。强迫诊断接头to build a matrix from variable-size inputs that are not 1-by-: or :-by-1, use:
对于不是变长向量(1 × -:或:-by-1)的变大小输入,诊断接头将输入作为一个矩阵,从中提取一个对角向量。即使在运行时输入数组是一个向量,也会发生这种行为。强迫诊断接头to build a matrix from variable-size inputs that are not 1-by-: or :-by-1, use: