Borrar filtros
Borrar filtros

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

130 visualizaciones (últimos 30 días)
Matilde Garcia
Matilde Garcia el 2 de Dic. de 2015
Comentada: Suhel Tamboli el 9 de Mzo. de 2021
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.

Respuesta aceptada

Thorsten
Thorsten el 2 de Dic. de 2015
Editada: Thorsten el 2 de Dic. de 2015
x(y==yourvalue)
or if you allow for some tolerance
tol = 1e-6;
x(abs(y-yourvalue) < tol)
  4 comentarios
Coryn Melissa LLamoza Carabali
Coryn Melissa LLamoza Carabali el 14 de Oct. de 2020
Hi, have the same problem you have. Were you able to get it to work?
Suhel Tamboli
Suhel Tamboli el 9 de Mzo. de 2021
Hello, how can I get y values for a range of x values (from a particular x value to another)?

Iniciar sesión para comentar.

Más respuestas (1)

Salih CIL
Salih CIL el 11 de Dic. de 2018
Thx it is working :)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by