How to find a y value for a given x in a plot?
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Anirban Mandal
il 30 Nov 2021
Commentato: Anirban Mandal
il 1 Dic 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
