i want to change the value in some specific rows how can i do it
Mostra commenti meno recenti
i want to change the value in some specific rows how can i do it?
1 Commento
Zoltán Csáti
il 4 Dic 2014
More specifically?
Risposte (2)
C.J. Harris
il 4 Dic 2014
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
il 5 Dic 2014
0 voti
name of matrix(row, column) = replacement value
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!