Is it possible to change the color of the cursor when using the GINPUT function?
조회 수: 36 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2010년 1월 22일
편집: MathWorks Support Team
2016년 10월 14일
I am trying to change the color of the cursor when using the "ginput" function and am unable to do so.
채택된 답변
MathWorks Support Team
2016년 10월 14일
The ability to change the color of the cursor to something other than black or white when using the "ginput" function is not available in MATLAB.
As a workaround, you can use the "WindowButtonMotionFcn" together with the "WindowButtonDownFcn" to replicate the functionality of the "ginput" function while adding the ability to change the color of the cursor.
Attached is an example MATLAB code that illustrates how to do this.
Another solution using the "WindowButtonMotionFcn" together with "WindowButtonDownFcn" can be found on MathWorks File Exchange.
For questions regarding this File Exchange function, please contact the author of the post directly.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!