How to find the minimum of an array element, but in a interval?
Show older comments
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 Comments
Dyuman Joshi
on 31 Oct 2023
Moved: Dyuman Joshi
on 2 Nov 2023
Use logical indexing (Find Array Elements That Meet a Condition) to find the values in the given range and then use min.
Dyuman Joshi
on 31 Oct 2023
Moved: Dyuman Joshi
on 2 Nov 2023
Well.
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!