MATLAB: Plotting distance values with lines

linesplotting

Hi, I have this result. I have calculated the distance between centre(red) and all the scatter points. So i want to display those distance values with each corresponding line in the figure. Any idea guys………..

Best Answer

I’m not certain what you intend by ‘display’, but if you want the distances as numbers, perhaps near each point, I suggest you experiment with the text function.