i want to change the value in some specific rows how can i do it
古いコメントを表示
i want to change the value in some specific rows how can i do it?
1 件のコメント
Zoltán Csáti
2014 年 12 月 4 日
More specifically?
回答 (2 件)
C.J. Harris
2014 年 12 月 4 日
A = [1 2 3; 1 2 3; 1 2 3; 1 2 3; 1 2 3; 1 2 3]
% Change Row 2
A(2,:) = [9 8 7];
% Change Row 5
A(5,:) = [5 5 5];
A =
1 2 3
9 8 7
1 2 3
1 2 3
5 5 5
1 2 3
Abed
2014 年 12 月 5 日
0 投票
name of matrix(row, column) = replacement value
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!