Extracting value from array and determine it position
1 次查看(过去 30 天)
显示 更早的评论
suppose i have this table.
How do i determine how many days the temp in lake A was above 60 and on what day its happen? I use this commands but it doesnt satisfy my question.
temp_A=[55 62 60 61 63 65 62 59 58 56];
x=find(temp_A>60)
position=temp_A(x)
4 个评论
Matt J
2021-5-7
I edited your post to show the results of running your computation. It seems to give exactly the results you say you expect. Are you seeing something different?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!