Description Usage Arguments Details Value Examples
This function helps to create a n*m matrix with ascending numbers printed in circle.
1 | circle_matrix(max_row, max_col)
|
max_row |
Maximum rows of the matrix |
max_col |
Maximum columns of the matrix |
Steven received an interview question: “how to create a matrix in circle?” Steven failed to answer this question during the interview, but he created a package once he got back to home. Users need to specify the dimension (n*m) of the matrix, and the function will print out a n*m matrix and automatically fill in ascending numbers in circle.
A matrix with ascending numbers in circle
1 2 | circle_matrix(4,4)
circle_matrix(6,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.