Is it possible to change the color of the cursor when using the GINPUT function?
30 次查看(过去 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 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!