how to gain minimum value
Show older comments
Hi everybody,
r=[1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2]
L/200<r
for example L=246 ,
I want minimum r regarding L/200<r
What I should do??
Thanks.
Accepted Answer
More Answers (1)
For reference, (see comment to Misha's answer), the correct answer should have been:
r=[1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2];
L = 246;
r_min = min(r(r*200 > L))
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!