How can I determine if a value is in the interval?
115 views (last 30 days)
Show older comments
I have an array=[1.410,2.504]
I need to check if the value 1.957 exists within the range of the interval.
How can I do this?
0 Comments
Accepted Answer
More Answers (1)
Fangjun Jiang
on 9 Mar 2021
if and(value>array(1), value<array(end))
display('inside');
else
display('outside')
end
See Also
Categories
Find more on Logical 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!