coordinates of a point from a matrix
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sara Ismail-Sutton
il 11 Set 2020
Risposto: Steven Lord
il 11 Set 2020
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 !!
0 Commenti
Risposta accettata
Steven Lord
il 11 Set 2020
Clear the variable you've defined named find that's preventing you from calling the find function.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!