How to Update matrix values
8 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix[2 2:2 2]I want to update these four values one by one ie[3 3:3 3],[4 4:4 4],[5 5:5 5] like thgis I want to update ,,,how can i achieve this with script?
0 件のコメント
採用された回答
その他の回答 (1 件)
Walter Roberson
2013 年 1 月 2 日
A = A + 1;
4 件のコメント
Walter Roberson
2013 年 1 月 2 日
If you want to see each updated value, you could remove the semi-colon from the addition
a(i) = a(i) + 1 %no semi-colon
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!