Getting the position of a value in a vector
1 次查看(过去 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')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!