フィルターのクリア

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 Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by