The Data Tip Text Update Function
3 次查看(过去 30 天)
显示 更早的评论
pos = get(event_obj,'Position');
x = pos(1); y = pos(2);
output_txt = {['Y: ',num2str(y,4)]};
is straight out of the documentation, but for the life of me i can not figure how to get the following to work:
output_txt{end+1} = {['X: ',num2str(x,4)]};
i have tried all sort of things to num2str(x,???) to no avail. any insight is appreciated.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Geometries and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!