Growing eye matrix as per the size of eye
1 回表示 (過去 30 日間)
古いコメントを表示
I have an eye matrix of size eye(3). I need to increase the size of matrix as below so that eye matrix has to repeat 2 times then 3 times. Can anyone help![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019275/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019275/image.png)
0 件のコメント
採用された回答
その他の回答 (3 件)
DGM
2022 年 6 月 2 日
There are a number of ways, but this is what I'd do:
A = toeplitz([1 0 0 1 0 0 1 0 0],[1 0 0 0 0 0 0 0 0])
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!