Watch this Author's files
I run this thing all the time, very useful. Is there any way to save the labels in the figure so I can just save a .fig and send it to a collaborator?
Excellent - makes the whole process much easier
I actually just figured out a solution:
if length(datapoint)>1 txt = labels{datapoint(1)}; for i = 2:length(datapoint) txt = [txt ';' labels{datapoint(i)}]; end else txt = labels{datapoint}; end
output_txt = { txt;... ['X: ',num2str(pos(1),4)];... ['Y: ',num2str(pos(2),4)] };
Probably not the best way to code it, but it works...
Very useful in showing my how to write my own custom datatip function!
Contact us at files@mathworks.com