Hello,
I want to plot cross section of salinity I use contourf but i want to add the value os salinity in same figure such as this picture
i wnt to show how the salinity change with depth and longitude .
the dimention of may data (time,lat,lon)
time=730*1;
lat=200*500;
lon=200*500;

 채택된 답변

Star Strider
Star Strider 2024년 9월 27일

0 개 추천

The best you can do is probably to use the colorbar label —
x = linspace(0, 20).';
y = linspace(0, 70).';
[X,Y] = ndgrid(x, y);
Z = flipud(X.*Y/150);
figure
contourf(X, Y, Z, 'ShowText',1)
colormap(turbo)
hcb = colorbar;
hcb.Label.String = 'Salinity (mM)';
.

댓글 수: 2

eb.az
eb.az 2024년 9월 27일
thanx , it's work .
Star Strider
Star Strider 2024년 9월 27일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

질문:

2024년 9월 27일

댓글:

2024년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by