Next: mean, Previous: maxloc, Up: Internal Routines [Contents][Index]
mdiagonal(values)
Returns a square matrix with the specified values
on the
diagonal, and zeros everywhere else. The matrix has its number of
rows and columns equal to the number of elements in
values
.