Smoothing 2D matrix

조회 수: 78 (최근 30일)
Taindra Neupane
Taindra Neupane 2020년 7월 21일
답변: waqas 2020년 7월 21일
Hi,
I have a 2D matrix data as shown in surf plot below. It has lots spikes or noise even after 2dinterpolation.But I want to smooth it and I could not find any funtion/code to make it smoother. I am looking forward to your comments as soon as possible. Thanks.

답변 (1개)

waqas
waqas 2020년 7월 21일
May be using this would work:
Where A is 2D matrix and FilterSize can be changed to control smoothenig you want.
imgaussfilt(A,'FilterSize',3);
Other option can be to use fspecial function.

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by