Find first three numbers in a matrix that satisfy the condition x>0.001

2 次查看(过去 30 天)
I have a matrix with three columns and just over 8000 rows. The first column is the load in a compression test as time goes on. I want to find where the numbers start increasing actually increasing, so I want to find the first three numbers which are greater than or equal to 0.001. I've used the following to find the rows where x>0.001:
B=find(A(:,1)>0.001)
However, I don't know how to specifiy to find the first three rows that satisfy these conditions. Any ideas on how to go about this?

采纳的回答

Matt J
Matt J 2019-7-9
B=find(A(:,1)>0.001,3)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by