I'm doing a project and my goal is to do a chess game in matlab's GUI. The problem I'm facing right now is that I can't figure out a way to make the code sense (in real time) if the axes object is clicked on. The best I can do is to implement a pushbutton to display the CurrentPoint on my axes, however, I'd like to make it spontaneous.
I see that with the ButterDownFcn applied on the figure (GUI background) there is a way, since there is a script callback generated for it in the .m file, but not for the specific ButtonDownFcn of the axes object.
I'm not sure if my question is well formulated enough, so let me know if you need more informations, I'd really appreciate it.