Borrar filtros
Borrar filtros

select first standard answer equal or greater than obtained answer

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Thorsten
Thorsten el 23 de Nov. de 2015
I(find(I>=H, 1, 'first'))

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by