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

9 visualizzazioni (ultimi 30 giorni)
I am interested in getting an interval of X values, for example, [Xmin , Xmax] after specifying a value of Y for example 0.3.

Risposta accettata

Walter Roberson
Walter Roberson il 21 Gen 2022
idx = find(y >= 0.3);
xmin = x(idx(1));
xmax = x(idx(end));

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by