Getting the position of a value in a vector
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adam Palmer
am 5 Aug. 2014
Kommentiert: Star Strider
am 5 Aug. 2014
Hey Matlab community, I have another one for you all. I have a vector of values BAC_F that corresponds with time, and I want the first position of BAC(BAC_F<.08) , but I can't quite figure it out. Any help and suggestions are appreciated.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 5 Aug. 2014
If you want the index of the first value where BAC < 0.08:
BACx = find(BAC < 0.08, 1, 'first')
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!