Contour map of ocean current on transect

2 ビュー (過去 30 日間)
Beñat Gutierrez
Beñat Gutierrez 2021 年 5 月 24 日
コメント済み: KSSV 2021 年 5 月 24 日
I have data for the North-South-Current (vcur, 458x21) and for the East-West-Current (ucur, 458x21) with each column corresponding to one position (Longitude, Lattitude). Now I want to make a contourf-plot with the depth (z, 458x21) on the y-axis and the longitude (lon, 1x21) on the x-axis, with the colour corresponding to the direction of current. I'm very new to matlab and would appreciate any help, to link all the variables in one plot.

採用された回答

KSSV
KSSV 2021 年 5 月 24 日
You have vectors in hand....you can have quiver plot using:
quiver(ucur,vcur)
If you have lon and lat values use:
quiver(lon,lat,ucur,vcur)
If you want a contour plot.
figure
contour(ucur) % contour of u-component
figure
contourf(ucur)
figure
pcolor(ucur)
You can associate lon, lat in the above.
  2 件のコメント
Beñat Gutierrez
Beñat Gutierrez 2021 年 5 月 24 日
Is there a way to display both contours of ucur,vcur in one plot associated with the depth and the Longitude?
KSSV
KSSV 2021 年 5 月 24 日
yes..Read about Contour

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by