write a coordinate obtained by clicking on a graphic appdesigner
이전 댓글 표시
Good morning, I have a code that, inside a graph follows the movement of the mouse and when you click it saves the x and y coordinates of that point. Later I want to write that x-coordinate in an edit field numeric. The code I have is the following but I have something wrong. I would appreciate if someone could help me.
properties (Access = private)
x
y % Description
end
app.time is the name of the edit field numeric and acc_x the name of the uiAxes

채택된 답변
추가 답변 (1개)
Antoni Garcia-Herreros
2023년 4월 4일
편집: Antoni Garcia-Herreros
2023년 4월 4일
Hello Marina,
Looks good to me except the last line, I would change it to:
app.tiempo.Value = app.x; % CurrentPoint(1) is already a numeric value
Hope this helps
카테고리
도움말 센터 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!