Filter löschen
Filter löschen

How do I find the values at a specific Y value on a 3-D surf plot?

5 Ansichten (letzte 30 Tage)
Victoria K
Victoria K am 26 Apr. 2022
Kommentiert: KSSV am 26 Apr. 2022
Attached is a picture of a side view of a 3-D surf plot I have created using surf(X,Y,Z,'edgecolor','interp').
The X axis is the date, Y axis is the depth, Colobar represents the temperature.
I want to find the temperature values at a specified y value. For example, is there a way to find all the plotted points and their temperature values at Y = 1?
Hope that makes sense.
Thanks for the help!

Antworten (1)

KSSV
KSSV am 26 Apr. 2022
Read about slice.
Also you can find the index of your required points and extract the required values.
  2 Kommentare
Victoria K
Victoria K am 26 Apr. 2022
Thanks for the help.
I am looking into slice. My X is 5042 x 1 datetime, y is 1x6 double, Z is 6x5042 double.
I am not sure what 'V' for the slice function should be in this case, could you offer any advice?
KSSV
KSSV am 26 Apr. 2022
You can get the index of your y; you got only 6 values for y.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by