Contour map of ocean current on transect
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!