Read vector until last value, or NANs start
Ältere Kommentare anzeigen
I have a vector array with an unknown number of entries. Either it will end nicely with the last entry being a number, or nans will start populating. I just need the index of the last actual number, not knowing if there's a next entry, or if the next is a nan.
Can you help?
Thanks!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu NaNs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!