MATLAB Answers


'WindowButtonMotionFcn' function not working on my Mac OS X but works on Windows

Asked by Mohammad Haseeb on 14 Nov 2013

I am using a Mac and have MATLAB R2009b installed in it.

I have used set(fig, 'WindowButtonMotionFcn','mouseLoc = get(gca, ''CurrentPoint'');'); in my code but this is not working as the mouseLoc vector is not being updated. However when I try the SAME code on a computer running Windows, it functions normally.

Please tell me how do I fix this problem as I have a project due and I can only work on my Mac. Thank you


Log in to comment.

0 Answers

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Win prizes and improve your MATLAB skills

Play today