select first standard answer equal or greater than obtained answer

1 次查看(过去 30 天)
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.

采纳的回答

Thorsten
Thorsten 2015-11-23
I(find(I>=H, 1, 'first'))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by