Adjustment of Contour Plot

I have data consist of X(x coordinate) Y(y coordinate) Z(velocity). I created below countour plot with below code:
xyz = readmatrix('velocity.txt');
plot(xyz(:,1),xyz(:,2),'.')
I = scatteredInterpolant(xyz(:,1),xyz(:,2),xyz(:,3));
[x,y] = meshgrid(unique(xyz(:,1)),unique(xyz(:,2)));
contourf(x,y,I(x,y))
colorbar
However, I tried to plot contour graph with special software It gives more detail about ploting given below:
I want to plot in this format in Matlab.
-The contour line more smooth and rounded
-Contor line magnitude is given
Note: Iteration method is "Krigging" but in MATLAB it could be different I tried to plot contour graph similar to last image. Thank you.

4 件のコメント

Star Strider
Star Strider 2023 年 1 月 7 日
The problem is that there’s nothing between the three values with the highest z-values to provide any contrast between them, so the interpolation functions correctly consider them as a continuum.
xyz = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1255417/velocity.txt');
x = xyz(:,1);
y = xyz(:,2);
z = xyz(:,3);
figure
stem3(x, y, z)
hold on
scatter3(x, y, z, 50, z, 'filled')
hold off
colormap(turbo)
view(160,30)
The only way to show them as specific isolated areas in the contourf plots would be to fill between them with some lower values. (I attempted that, however the result was weird, so I’m not posting it.)
.
Adam Danz
Adam Danz 2023 年 1 月 7 日
編集済み: Adam Danz 2023 年 1 月 7 日
Mind sharing what software you used?
Also, did you compute the interpolant in that software or are you using the exact same x,y,I(x,y) inputs in the other software?
JACK LONDON
JACK LONDON 2023 年 1 月 7 日
I use Arcgis software and I used interpolant automatically calculated from the software
Adam Danz
Adam Danz 2023 年 1 月 7 日
There are some kriging interpolation function on the file exchange you could try:

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

回答 (0 件)

カテゴリ

タグ

質問済み:

2023 年 1 月 7 日

コメント済み:

2023 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by