How do I smooth a curve on a surf plot?
2 次查看(过去 30 天)
显示 更早的评论
I have been trying to "smooth" out this curve in MATLAB but have been unable to. The goal is to have a smoother curve depicted in this surf plot. Any ideas?
I have attached the code needed to make the figure to and I used the code below to generate this figure
surf(ZFF_vals, DFF_vals, Fin
0 个评论
回答(2 个)
Sulaymon Eshkabilov
2022-3-20
You can try smoothdata() with Gaussian, e.g.:
X = load('DFF_vals.mat');
Y = load('ZFF_vals.mat');
Z = load('Fin.mat');
Zsmooth = smoothdata(Z, 'gaussian', 25);
subplot(211)
mesh(X,Y,Z)
subplot(212)
mesh(X,Y, Zsmooth), view([30, 45, 30])
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!