フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am new on MATLAB and want to create an editor using GUI but I cannot handle the axes position and mouse movement (drag) in which image is loaded . Kindly help me

1 回表示 (過去 30 日間)
Ahmer Shahid
Ahmer Shahid 2017 年 12 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
code for button up/down function: pos = get(gca, 'currentpoint'); % get mouse location on figure x = pos(1); y = pos(2); % assign locations to x and y set(handles.text2, 'string', ['Mouse pressed @ X: ', num2str(x) , ' ,Y: ', num2str(y)]);
code for cursor movement: set (gcf, 'WindowButtonMotionFcn', @mouseMove); function mouseMove (object, eventdata) C = get (gca, 'CurrentPoint'); title(gca, ['(X,Y) = (', num2str(C(1,1)), ', ',num2str(C(1,2)), ')']);

回答 (0 件)

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by