title: How to create new points in existing matlab figure and execute function
body: <p>This is briefly my question: If I have an existing 2D simple matlab figure, I would like to create new points by clicking (or by double-clicking) to a certain point. In addition, I would like to execute a script, or function, or even a command every time I create a new point. I <em>did</em> search both on the web and here carefully but I had no luck...</p>
  
  <p>Could you help please?
  Thanks in advance!</p>