Azzera filtri
Azzera filtri

Smoothing a 2d matrix

4 visualizzazioni (ultimi 30 giorni)
Haythem Zouabi
Haythem Zouabi il 11 Nov 2020
Risposto: Sibi il 17 Dic 2020
Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,

Risposte (1)

Sibi
Sibi il 17 Dic 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