Combine block matrix with same elements
2 ビュー (過去 30 日間)
古いコメントを表示
I want to creat matrix:
7 7 7 7 7 2 2
7 7 7 7 7 2 2
6 6 9 9 9 2 2
6 6 9 9 9 2 2
6 6 8 8 8 8 8
6 6 8 8 8 8 8
I used code:
[zeros(2,5)+7zeros(2,2)+2;zeros(2,2)+6,zeros(2,3)+9,zeros(2,2)+2;zeros(2,2)+6,zeros(2,5)+8]
But i think have a different way to creat it. That way use matrix which has same element.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!