for example, a matrix 1 2 4 2 4 7 23 6 9 how to convert to this matrix: 1 2 4 0 0 0 0 0 0 0 0 0 2 4 7 0 0 0 0 0 0 0 0 0 23 6 9
MATLAB: The diagonal element of a matrix is a matrix, how to convert left matrix to right matrix
matrix manipulation
Related Question
- How to generate the matrix of (50,100) with its diagonal alone having values
- How to create a diagonal matrix with the semibandwidth of 4
- Change an element in diagonal of matrix
- Nodal admittance matrix using for loop and if statement
- How to refer to the diagonals of a matrix
- How to change a specific group of diagonal values within a matrix, but still print the whole matrix
Best Answer