Filter löschen
Filter löschen

select first standard answer equal or greater than obtained answer

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by