this is what i tried so far.
Image = zeros(10,10);
% put ones
Image(5,5)=1;
Image(10,10)=1;
[x,y]=meshgrid(1:10,1:10);
%for location 5,5
total = exp(-((x-5)^2+(y-5)^2));
But my total matrix is all zeros except total(5,5) is one. I expected to have in other cordinates some fractions. Am i doing something wrong.