Hello. How to create such a matrix?
Mostrar comentarios más antiguos
1 0 2 0 ..
0 2 0 3 ..
2 0 3 0 ..
0 3 0 4 ..
3 0 4 0 ..
: : : :
1 comentario
Stephen23
el 10 de Dic. de 2018
@Azad Asadov: you tagged your question with "infinite matrix", which of course cannot be stored on any computer in the world.
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 10 de Dic. de 2018
Try this:
m = [...
1 0 2 0; ...
0 2 0 3; ...
2 0 3 0; ...
0 3 0 4; ...
3 0 4 0]
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!