select first standard answer equal or greater than obtained answer

1 view (last 30 days)
Hi everyones,
I explain my question with an example :
H=180 (is obtained from an equation)
standard I=[100 150 200 250]
I>=H
I want to select standard number for I which is equal or greater than H.
what should I do?
thanks.

Accepted Answer

Thorsten
Thorsten on 23 Nov 2015
I(find(I>=H, 1, 'first'))

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!