i want to find the value of c(2,3)
in a matrix consisting of
c = [1.1 -3.2 3.4 0.6;...
0.6 1.1 -0.6 3.1;...
1.3 0.6 5.5 0.0];
so i did
size(c)
find(c== 2 ,3)
but after running the program i found this error
0×1 empty double column vector
i dont really what to do now
please help!

 채택된 답변

madhan ravi
madhan ravi 2019년 5월 13일

1 개 추천

c(2,3) % basic indexing , second row and third column

댓글 수: 2

oh alright thanks for the answer, i tought i did write and tried c(2,3) but i wrote c = (2,3). Thanks for claryfying.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2019년 5월 13일

편집:

2019년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by