Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Finding a position of a element in a matrix

조회 수: 1 (최근 30일)
NIRBAN CHAKRABORTY
NIRBAN CHAKRABORTY 2022년 1월 6일
마감: Stephan 2022년 1월 6일
이 질문에 Turlough Hughes 님이 플래그를 지정함
I have a matrix a=[1 2 3 4 5 10;2 3 5 6 1 12;2 6 4 5 7 16;10 2 1 4 5 20;2 3 1 4 9 12]
I want to find out the minimum value postion of this matrix in 2nd row from 1st to 3rd column
I have written this code
[i1,j1]=find(a(2,1:6)==min(a(2,1:3)))
but instead of giving 2nd row 1st column as the minimum value postion, it is showing the result like this
i1 =
1
j1 =
1

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by