gusucode.com > elmat工具箱matlab源码程序 > elmat/triu.m
%TRIU Extract upper triangular part. % TRIU(X) is the upper triangular part of X. % TRIU(X,K) is the elements on and above the K-th diagonal of % X. K = 0 is the main diagonal, K > 0 is above the main % diagonal and K < 0 is below the main diagonal. % % See also TRIL, DIAG. % Copyright 1984-2005 The MathWorks, Inc. % Built-in function.