How to write program for this block matrix
12 次查看(过去 30 天)
显示 更早的评论
Row1 0 0 0 0 | 0 0 1 0,
Row2 0 0 0 0 | 0 0 0 1,
Row3 0 0 0 0 | 1 0 0 0,
Row4 0 0 0 0 | 0 1 0 0,
Row5 0 0 1 0 | 0 0 0 0,
Row6 0 0 0 1 | 0 0 0 0,
Row7 1 0 0 0 | 0 0 0 0,
Row8 0 1 0 0 | 0 0 0 0
Order of matrix 4×4
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2022-1-3
Not sure I understand. Am I missing something? Isn't it just
m = [...
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0]
??? It seems so trivial, so I'm not sure what you're asking.
And the order of that matrix is 8-by-8, not 4-by-4.
2 个评论
Image Analyst
2022-1-3
Again, I don't understand. What do you mean by block size? Didn't Matt and I both give you code that creates your desired matrix? Or not? I know you're a man of very few words, but you're going to have to do a lot more explaining to make us understand why we're not meeting your needs in creating the output matrix you asked for.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spline Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!