Info

此问题已关闭。 请重新打开它进行编辑或回答。

String position in uicontrol

1 次查看(过去 30 天)
v k
v k 2020-11-2
关闭: MATLAB Answer Bot 2021-8-20
In the following code
h=uicontrol('Style','text', 'String',str, ...
'Units','normalized', 'Position',[0.1 0 0.9 0.7]);
the str is 'abc def - ghi, jkl'
How can I access the position of the characters a,b,c etc from the Position vector [0.1 0 0.9 0.7] ?
If it can be done in pixel units, thats also fine.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by