How to find a y value for a given x in a plot?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anirban Mandal
am 30 Nov. 2021
Kommentiert: Anirban Mandal
am 1 Dez. 2021
I have plotted a curve with a given dataset. Now I want to find the value of y for a certain value of x. The code and graph is give below.
filen='argo-profiles-2902294.nc'
p=ncread(filen,'PRES');
t=ncread(filen,'TEMP');
p1=p(:,2)
t1=t(:,2)
plot(t1,p1,'k')
set(gca,'YDir','reverse')

Now, let's say I want to find the pressure value for a certain x value (say 25). What to do?
0 Kommentare
Akzeptierte Antwort
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!
