Turning a 3d Plot into a 2d Plot

8 ビュー (過去 30 日間)
Leandro Nazzari
Leandro Nazzari 2020 年 10 月 29 日
コメント済み: Cris LaPierre 2020 年 10 月 29 日
Hello Everyone!
I currently have a 3d Plot which shows me the sea surface temperatur along the coast of Mauretania.
My temperatur variable consists of :
167 x values (Latitude)
168 y values (Longitude)
72 z values (depth)
To make a 3d plot, i used
pcolor(T(:,:,1)'), shading flat;
T = the variable temperature, and z=1 so i only have the surface value.
NOW I'd love to make a 2d Plot featuring the change of the temperatur depending on the depth -
SO i'd like to turn the xyz pcolor plot into a 2d plot where the y axis -> new x axis
and z axis -> new y axis
I just cant really make it work, i'm guessing i'll have to use linspace() somehow but since i'm new to matlab i dont really know where to start!
Thanks!
  1 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 10 月 29 日
Attach your data.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by