필터 지우기
필터 지우기

coordinates of a point from a matrix

조회 수: 4 (최근 30일)
Sara Ismail-Sutton
Sara Ismail-Sutton 2020년 9월 11일
답변: Steven Lord 2020년 9월 11일
I've searched through old threads but the common answer - below- is not working for me, thanks
I have a matrix X which is all zeros and 6x6 except X(1,6) and X(6,1) which are equal to 1. when i do
[row,col]=find(X==1)
or
[row,col]=find(X>0)
I'm getting the error message:
"Insufficient number of outputs from right hand side of equal sign to satisfy assignment."
(tried this with both the class 'double' and 'logical')
Many thanks !!

채택된 답변

Steven Lord
Steven Lord 2020년 9월 11일
Clear the variable you've defined named find that's preventing you from calling the find function.

추가 답변 (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