error finding placement of specific number in a vector
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Candice Cooper
il 25 Mag 2021
Commentato: Candice Cooper
il 25 Mag 2021
I have a single column vector named 'lon' of 8640 values. I'm trying to find which row has a certain value. I've tried using find(lon==120), but all it returns is an empty 0 x 1 double column vector. I've tried figuring this out online, but all I come across is the find function, which isn't working for me.
0 Commenti
Risposta accettata
Più risposte (1)
Sulaymon Eshkabilov
il 25 Mag 2021
Hi,
Your data might be in a floating point format and if that is the case, then you need to be careful with logical indexing. If this is the case, you may need to use round up, select how many correct decimal digits to consider, and so forth. Moreover, inftead of find(Ion==120), you can use IND = (Ion==120) that shows you the indexes.
If you post your data, more specific answer will be provided.
Good luck.
0 Commenti
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!