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

조회 수: 9 (최근 30일)
I am interested in getting an interval of X values, for example, [Xmin , Xmax] after specifying a value of Y for example 0.3.

채택된 답변

Walter Roberson
Walter Roberson 2022년 1월 21일
idx = find(y >= 0.3);
xmin = x(idx(1));
xmax = x(idx(end));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by