getcol(x: matrix,n: number,): array
Get a column of a matrix.
Retrieves a specific column from a 2D matrix. If the input is not a matrix or if the column index is invalid, an error is thrown.
x: matrix
The input matrix (2D array) from which to retrieve the column.
An array representing the specified column of the matrix.