i want to change the value in some specific rows how can i do it

28 Ansichten (letzte 30 Tage)
Dija
Dija am 4 Dez. 2014
Beantwortet: Abed am 5 Dez. 2014
i want to change the value in some specific rows how can i do it?

Antworten (2)

C.J. Harris
C.J. Harris am 4 Dez. 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
Abed am 5 Dez. 2014
name of matrix(row, column) = replacement value

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by