Getting the position of a value in a vector
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2014년 8월 5일
If you want the index of the first value where BAC < 0.08:
BACx = find(BAC < 0.08, 1, 'first')
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!