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!