How to add a crosshair to matlab Figures?

i have a GUI which simply opens an image in a new fogure window. i would like to add a buttom that when pushing, add a crosshair or data cursor that takes it's position (coordinate) from two text box (X and Y text box). something inverse to ginput function which return the X and Y. many thanks

回答(1 个)

per isakson
per isakson 2013-11-21
编辑:per isakson 2013-11-21

1 个评论

thank you very much for your guide. but the point is i want to have a crosshair that point to the place (coordinate) that i have enter in a text box. here is the code my code:
% opening the image by pushing button
FileName=uigetfile(*.jpg);
figure
imshow(Filename);
%calling the edit text boxes for entering the coordinates
%function edit1_Callback(hObject, eventdata, handles)
%making a oush button
now i want when i push another button a crosshair jumps to the desired coordinate. thank you very much

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Data Exploration 的更多信息

提问:

2013-11-21

评论:

2013-11-24

Community Treasure Hunt

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

Start Hunting!

Translated by