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

396 次查看(过去 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.

采纳的回答

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
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 中查找有关 Networks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by