generate matrix by for loop
古いコメントを表示
A=[1 -10 4
0 -2 7
5 1 9]
I need to get
A=[1 0 -10 0 4
0 0 -2 0 7
5 0 1 0 9]
by for loop
1 件のコメント
David Meissner
2022 年 6 月 6 日
I would look into "Indexing with a Single Index" here: https://www.mathworks.com/help/matlab/math/array-indexing.html
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!