Fixed a bunch of docs errors with Usage headers.

This commit is contained in:
Garth Minette
2020-10-03 20:29:35 -07:00
parent 16ee49e8b2
commit 38873d8ef9
9 changed files with 51 additions and 27 deletions

View File

@@ -1146,7 +1146,8 @@ function subindex(M, idx) =
// Function: submatrix()
// Usage: submatrix(M, idx1, idx2)
// Usage:
// mat = submatrix(M, idx1, idx2)
// Description:
// The input must be a list of lists (a matrix or 2d array). Returns a submatrix by selecting the rows listed in idx1 and columns listed in idx2.
// Arguments:
@@ -1245,7 +1246,8 @@ function diagonal_matrix(diag,offdiag=0) =
// Function: submatrix_set()
// Usage: submatrix_set(M,A,[m],[n])
// Usage:
// mat = submatrix_set(M,A,[m],[n])
// Description:
// Sets a submatrix of M equal to the matrix A. By default the top left corner of M is set to A, but
// you can specify offset coordinates m and n. If A (as adjusted by m and n) extends beyond the bounds