determining the value of an x corresponding to specifec y from the graph
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nora Khaled
am 25 Feb. 2019
Kommentiert: Nora Khaled
am 25 Feb. 2019
I have two vector that I used to plot the following.
the vector used to plot the y axis does not contain the value 0.5
so I want to determin the value of the x axis in the point I have selectud manually in the figure.
its the point that x would have if it was a continuous variable. but I do want to do this with code to use this value in some other computation.
0 Kommentare
Akzeptierte Antwort
ANKUR KUMAR
am 25 Feb. 2019
Use polyfit to fit a linear line along all data points. It gives you a linear equation in terms of x and y. Just insert the value of x or y to get the other variable.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!