필터 지우기
필터 지우기

How to I find a x value from a given y?

조회 수: 142 (최근 30일)
Matilde Garcia
Matilde Garcia 2015년 12월 2일
댓글: Suhel Tamboli 2021년 3월 9일
I have plotted a Matlab graph using a long matrix. I am looking to find the code which gives me an x value from the line graph given a y.

채택된 답변

Thorsten
Thorsten 2015년 12월 2일
편집: Thorsten 2015년 12월 2일
x(y==yourvalue)
or if you allow for some tolerance
tol = 1e-6;
x(abs(y-yourvalue) < tol)
  댓글 수: 4
Coryn Melissa LLamoza Carabali
Coryn Melissa LLamoza Carabali 2020년 10월 14일
Hi, have the same problem you have. Were you able to get it to work?
Suhel Tamboli
Suhel Tamboli 2021년 3월 9일
Hello, how can I get y values for a range of x values (from a particular x value to another)?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Salih CIL
Salih CIL 2018년 12월 11일
Thx it is working :)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by