필터 지우기
필터 지우기

Difference between values and indices?

조회 수: 6 (최근 30일)
Jack
Jack 2017년 10월 5일
댓글: Jack 2017년 10월 5일
Can someone give an explanation of the difference between the values of elements in a matrix vs. the indices of elements in a matrix?
Thanks.

채택된 답변

Mischa Kim
Mischa Kim 2017년 10월 5일
편집: Mischa Kim 2017년 10월 5일
E.g.
A = [1 2; 3 4]
Values of/in A are 1,2,3,4. To access the 2 you would use
val = A(1,2)
(1,2) are the indices of the element of A whose value is 2.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by