Adjustment of Contour Plot
2 ビュー (過去 30 日間)
古いコメントを表示
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1255422/image.png)
However, I tried to plot contour graph with special software It gives more detail about ploting given below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1255427/image.png)
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 件のコメント
Adam Danz
2023 年 1 月 7 日
There are some kriging interpolation function on the file exchange you could try:
回答 (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!