필터 지우기
필터 지우기

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

조회 수: 14 (최근 30일)
Dija
Dija 2014년 12월 4일
답변: Abed 2014년 12월 5일
i want to change the value in some specific rows how can i do it?

답변 (2개)

C.J. Harris
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
Abed 2014년 12월 5일
name of matrix(row, column) = replacement value

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by