how to gain minimum value
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (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))
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!