Hello. How to create such a matrix?
이전 댓글 표시
1 0 2 0 ..
0 2 0 3 ..
2 0 3 0 ..
0 3 0 4 ..
3 0 4 0 ..
: : : :
댓글 수: 1
Stephen23
2018년 12월 10일
@Azad Asadov: you tagged your question with "infinite matrix", which of course cannot be stored on any computer in the world.
채택된 답변
추가 답변 (1개)
Image Analyst
2018년 12월 10일
Try this:
m = [...
1 0 2 0; ...
0 2 0 3; ...
2 0 3 0; ...
0 3 0 4; ...
3 0 4 0]
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!