:ƽ

ʽ:
SmoothGrid(k,n)
SmoothGrid(k)

k:ľ
n:ظƽ,ĬΪ1

ԭ:
ڵ,ԾֵÿԪڵֵ,Ȼپٴξֵȡڵֵ

:

a = [ 1 2 3
      4 5 6
      7 8 9 ];
b=SmoothGrid(a)//سõ½
b =
[ 3.00000000000000    3.50000000000000    4.00000000000000
  4.50000000000000    5.00000000000000    5.50000000000000
  6.00000000000000    6.50000000000000    7.00000000000000 ]