필터 지우기
필터 지우기

Adding Row Matrix to Another Row

조회 수: 1 (최근 30일)
Carter ONeal
Carter ONeal 2017년 9월 13일
댓글: KSSV 2017년 9월 13일
z = magic(5);
I need to add the elements of the third row to the elements in the fifth row while the third row remains unchanged.
z =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
  댓글 수: 3
James Tursa
James Tursa 2017년 9월 13일
Hints:
The i'th row of a matrix z is z(i,:)
The j'th column of a matrix z is z(:,j)
KSSV
KSSV 2017년 9월 13일
@Carter.....you need to learn basics of MATLAB first rather then posting simple questions. MATLAB is a easy software with rich documentation..if you spend few minutes of time on documentation, you can achieve your task on your own. Later when you face complex situations in mere future, you can take use of this community. Read this link first:

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by