How to I find a x value from a given y?
조회 수: 142 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
2020년 10월 14일
Hi, have the same problem you have. Were you able to get it to work?
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!