color of "ginput"
26 次查看(过去 30 天)
显示 更早的评论
Hello.. ^^ is possible to change the cursor's color of "ginput" when i implement it..?? cause the color is transparent, sometimes i can't see where is my cursor.. :) thank you...
0 个评论
采纳的回答
Jakob Sørensen
2012-4-17
You can change the looks by changing cursor type...
set(gcf, 'pointer', 'crosshair');
And then you can change it back by:
set(gcf, 'pointer', 'arrow');
There is also other options than crosshair, but you can probably look that up yourself.
2 个评论
Jakob Sørensen
2012-4-18
You could use 'ButtonDownFcn' instead of 'ginput'. It's a bit more work, but makes it more customizable.
更多回答(1 个)
Walter Roberson
2012-4-17
Pointers are handled by the operating system, and are one-bit (black and white) with a 1 bit mask (transparent or not). It is not possible to change the pointer color.
另请参阅
类别
在 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!