Hi Everybody . I was trying to change the variable X & Y to t & Alpha in Data-tips but I couldn't find any way to do that. Is there any idea helps to do it. Thanks in advance
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hi Everybody
I was trying to change the variable X & Y to t & Alpha in Datatips but I couldn't find any way to do that. Is there any idea helps to do it. Thanks in advance
Answers (1)
Walter Roberson
on 11 Jun 2017
0 votes
Look at the second example at https://www.mathworks.com/help/matlab/ref/datacursormode.html#bsawkea-7
2 Comments
Abdulmajid Mrebit
on 12 Jun 2017
Walter Roberson
on 6 Jul 2017
Sorry, I missed your comment. Example:
dcm = datacursormode(gcf);
dcm.UpdateFcn = @(src, event) {sprintf('\x03c4 = %g\n\x03b1 = %g', event.Position)};
Note: this will require R2014b or later
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!