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

28 visualizaciones (últimos 30 días)
Dija
Dija el 4 de Dic. de 2014
Respondida: Abed el 5 de Dic. de 2014
i want to change the value in some specific rows how can i do it?

Respuestas (2)

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

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by