How can I create a matrix with diagonal structure that is neither upper nor lower triangular matrix?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Distelfink
el 3 de Mzo. de 2022
Respondida: Stephen23
el 3 de Mzo. de 2022
Hello everyone,
I would like to create a matrix of the following structure on a large scale:
B=[2 3 4 5 6; 3 4 5 6 0; 4 5 6 0 0; 5 6 0 0 0; 6 0 0 0 0]
How can I do this in an efficient manner?
Thank you
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!