How to I find a x value from a given y?
377 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Matilde Garcia
il 2 Dic 2015
Commentato: Suhel Tamboli
il 9 Mar 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.
0 Commenti
Risposta accettata
Thorsten
il 2 Dic 2015
Modificato: Thorsten
il 2 Dic 2015
x(y==yourvalue)
or if you allow for some tolerance
tol = 1e-6;
x(abs(y-yourvalue) < tol)
4 Commenti
Coryn Melissa LLamoza Carabali
il 14 Ott 2020
Hi, have the same problem you have. Were you able to get it to work?
Suhel Tamboli
il 9 Mar 2021
Hello, how can I get y values for a range of x values (from a particular x value to another)?
Più risposte (1)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!