set (gcf, 'WindowButtonMotionFcn', @mouseMove);
其中moveMove為Callback function name 
   1: function mouseMove (object, eventdata)
   2: C = floor( get(gca, 'CurrentPoint'));
   3: title(gca, ['(X,Y) = (', num2str(C(1,1)), ', ',num2str(C(1,2)), ')']);
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(2) 人氣()