how to make the contour line more curvy
1 次查看(过去 30 天)
显示 更早的评论
The contour line is straight, how to make it more curvy? I have uploaded the image i and raw data.
2 个评论
DGM
2024-3-10
It's not clear how your data is arranged or whether this is even the same data or all that's required to plot it. There's only one 63x189 matrix in the file.
Neither 63 nor 189 are integer-divisible by 12, so it's hard to guess whether this needs to be reshaped. It doesn't look like it does. So how did you plot this? If there's other information needed, please include it.
回答(1 个)
VBBV
2024-3-10
编辑:VBBV
2024-3-10
xdata % your x data
ydata % your y data
zdata % your z data
v = min(min(zdata)):1:max(max(zdata)) % add finer step size for smoother /curvier lines
contourf(xdata,ydata,zdata,v) % use additional argument
3 个评论
VBBV
2024-3-10
编辑:VBBV
2024-3-10
From the figure attachment the data looked like it's sufficiently smoothed, but was plotted at a coarse step. Yes, if the data is coarsely spaced that option doesn't smooth as you told.
@yuxuan , you can try this function to make the lines more curvy given in this link.
Mathieu NOE
2024-4-26
have a look at
or there are alternatives on the Fex , like :
另请参阅
类别
在 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!