Surface Fitting only in Z Direction
2 次查看(过去 30 天)
显示 更早的评论
I have a 44 by 44 square grid and I have a pressure value specified in the Z direction at each intersection point in the grid. So basically 44 x 44 = 1936 pressure values. I am able to plot a surface for these pressure values but the surface has many peaks. In what way can I smooth the surface? I cannot use cftool since I need to do this for multiple grids. How can I do this automatically by writing a code? I tried using the following syntax:
fitobject = fit([x,y],z,fitType)
But I only want to smooth the surface in Z direction, x and y are distances in space and hence need to be constant. How can I do this?
0 个评论
回答(1 个)
John D'Errico
2016-5-19
But you just have a regular grid in x,y. So just use conv2, with a Gaussian blur kernel. Simple to do. Fast. Easy. No need to do any curve or surface fitting.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!