/usr/share/freemat/help/text/diag.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | DIAG DIAG Diagonal Matrix Construction/Extraction
Usage
The diag function is used to either construct a
diagonal matrix from a vector, or return the diagonal
elements of a matrix as a vector. The general syntax
for its use is
y = diag(x,n)
If x is a matrix, then y returns the n-th
diagonal. If n is omitted, it is assumed to be
zero. Conversely, if x is a vector, then y
is a matrix with x set to the n-th diagonal.
|