Ok, I figured out how to "calculate the distance" and then record this on a matrix. This may be a bit sloppy:
for ii = -5:5
    hold on
    for jj = 0:10  
    px=[ii,0,jj];  
    plot3(px(1),px(2), px(3),'o','color','b'); 
    distance(ii+6,jj+1)=norm(star1-px)
    end
end
So I make an array of the distances, row and colums 10 x 10. 
- Now i think, how to overlay this on the 2D plane in matlab
- surely I'm not doing this correctly, or effeciently
My output for "distance":
 8.7 	 8.1 	 7.7 	 7.3 	 7.1 	 7.1 	 7.1 	 7.3 	 7.7 	 8.1 	 8.7 
 8.1 	 7.5 	 7.1 	 6.7 	 6.5 	 6.4 	 6.5 	 6.7 	 7.1 	 7.5 	 8.1 
 7.7 	 7.1 	 6.6 	 6.2 	 5.9 	 5.8 	 5.9 	 6.2 	 6.6 	 7.1 	 7.7 
 7.3 	 6.7 	 6.2 	 5.7 	 5.5 	 5.4 	 5.5 	 5.7 	 6.2 	 6.7 	 7.3 
 7.1 	 6.5 	 5.9 	 5.5 	 5.2 	 5.1 	 5.2 	 5.5 	 5.9 	 6.5 	 7.1 
 7.1 	 6.4 	 5.8 	 5.4 	 5.1 	 5.0 	 5.1 	 5.4 	 5.8 	 6.4 	 7.1 
 7.1 	 6.5 	 5.9 	 5.5 	 5.2 	 5.1 	 5.2 	 5.5 	 5.9 	 6.5 	 7.1 
 7.3 	 6.7 	 6.2 	 5.7 	 5.5 	 5.4 	 5.5 	 5.7 	 6.2 	 6.7 	 7.3 
 7.7 	 7.1 	 6.6 	 6.2 	 5.9 	 5.8 	 5.9 	 6.2 	 6.6 	 7.1 	 7.7 
 8.1 	 7.5 	 7.1 	 6.7 	 6.5 	 6.4 	 6.5 	 6.7 	 7.1 	 7.5 	 8.1 
 8.7 	 8.1 	 7.7 	 7.3 	 7.1 	 7.1 	 7.1 	 7.3 	 7.7 	 8.1 	 8.7 
Any input to put me in the write direction would be appreciated!


