clear all
len = 2048;    % poèt vzorkù v prùbìhu
c=5;
sig=1.4;
n=linspace(0,10,len);
x=exp((-(n - c).^2)/(2 * sig^2));
t=max(x);
x=round(x/t*255);
plot(n,x);
printf("\n const uint8_t table[%u]={\n",len);
for i=1:1:len
  printf("%u",x(i));
  if(i<len)
printf(",")
endif
  if(mod(i,8)==0)
  printf("\n");
endif

  endfor
printf("};\n")