Smoothing a 2d matrix

7 visualizaciones (últimos 30 días)
Haythem Zouabi
Haythem Zouabi el 11 de Nov. de 2020
Respondida: Sibi el 17 de Dic. de 2020
Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,

Respuestas (1)

Sibi
Sibi el 17 de Dic. de 2020
x=randi(10,2,3);
c = smooth(x(:));
y= reshape(c,height(x),width(x))

Community Treasure Hunt

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

Start Hunting!

Translated by