How to change the values of the corners in a matrix
12 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Chunru
2022 年 4 月 28 日
a= zeros(10, 10); % smaller matrix for easy display
% for corners
a([1 end], [1 end]) = 1;
a
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!