Feeds
提问
I'm trying to create a matrix with the following format for any size square matrix.
I need to create a square matrix of any size n so that it has this form: For Example, a 5x5 matrix: A= [1 0 0 0 0 ;1 -2 1 0 0 ...
6 years 前 | 1 个回答 | 0
1
个回答提问
Creating A Matrix Using Nested For Loops and Mod function
I need to create a n x n matrix function with the following pattern. If n was 4, the matrix should appear like [1 0 2 0;0 3 0 4...
9 years 前 | 1 个回答 | 0