How to find the minimum of an array element, but in a interval?
이전 댓글 표시
I have an array A=[0.5 3 10]
I want x=3.
In general how to extract from an array minimum element in a interval. In this case is between for example between 1 and inf.
댓글 수: 2
Dyuman Joshi
2023년 10월 31일
이동: Dyuman Joshi
2023년 11월 2일
Use logical indexing (Find Array Elements That Meet a Condition) to find the values in the given range and then use min.
Dyuman Joshi
2023년 10월 31일
이동: Dyuman Joshi
2023년 11월 2일
Well.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!