Smoothing a 2d matrix
显示 更早的评论
Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,
回答(1 个)
Sibi
2020-12-17
x=randi(10,2,3);
c = smooth(x(:));
y= reshape(c,height(x),width(x))
类别
在 帮助中心 和 File Exchange 中查找有关 Smoothing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!