How can I change the radius of a circle pointeur
Show older comments
Hi, I'm using the "myginput.m" function and I would like to change the radius of my circle pointer. However, I haven't succeeded. Would anybody have a or the solution ? Thank you in advance.
2 Comments
KSSV
on 11 Apr 2017
What is this function myginput.m? And where you want to change the pointer?
Marie BILLARD
on 11 Apr 2017
Accepted Answer
More Answers (1)
Thorsten
on 11 Apr 2017
0 votes
You have to define your own pointer as a 16 x 16 matrix and then change the line in myginput that changes the pointer to use your pointer. See http://matlab.izmiran.ru/help/techdoc/creating_plots/figure12.html for details how to define a pointer.
5 Comments
Guillaume
on 11 Apr 2017
My documentation of matlab says that the pointer can also be 32x32.
Marie BILLARD
on 12 Apr 2017
In which documentation can I find it ?
At matlab command prompt:
web(fullfile(docroot, 'matlab/ref/figure-properties.html#property_d0e277605'))
Or you could just try and see if it works:
hfig = figure;
custompointer = ones(32); custompointer(2:end-1, 2:end-1) = nan; %32x32 square
hfig.Pointer = 'custom';
hfig.PointerShapeCData = custompointer;
edit: it would appear that 32x32 was added in R2016b
Marie BILLARD
on 12 Apr 2017
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!