help to plot cross section
5 ビュー (過去 30 日間)
古いコメントを表示
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;
0 件のコメント
採用された回答
Star Strider
2024 年 9 月 27 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Oceanography and Hydrology についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!