Fixing Contour Plot/ Smooting Contour plot
显示 更早的评论
Hi all,
I have data x = [-50:1:50], y = [-50:1:50] and corresponding z values for each (x,y) point. I am trying to use the data to create a contour of all data above a set z value (i.e. v = [val val]). The data set I have is perfectly symmetric about the y axis (i.e. z(x,y) = z(x,-y)) and yet when using contour(x,y,z,v) the contour plot is not symmetric. I have tried using surf on the data and using view to get a 2-d slice. This also shows these discrepancies. From reading some threads on surf it appears each pixel is surf is determined by the data in the upper left hand corner. I am assuming the problems I am having with contour stem from a similar underlying method used by the contour function. Has anyone else run into this problem or does anyone else have an idea as to how I might force contours to look the same on both sides of the y axis or a way to smooth the contours so the major differences go away? Any ideas are welcome.
Thanks in advance for the help.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!