How to get interval of X for a certain value of Y in a plot or array.

9 visualizaciones (últimos 30 días)
I am interested in getting an interval of X values, for example, [Xmin , Xmax] after specifying a value of Y for example 0.3.

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de En. de 2022
idx = find(y >= 0.3);
xmin = x(idx(1));
xmax = x(idx(end));

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by