Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,

Réponses (1)

Sibi
Sibi le 17 Déc 2020

0 votes

x=randi(10,2,3);
c = smooth(x(:));
y= reshape(c,height(x),width(x))

Catégories

En savoir plus sur Curve Fitting Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by