I am using a uicontrol pop-up menu and want to set the size of the uicontrol large enough to hold all possible options. The right size should be as small as possible to neatly display all the contents. I use the 'Units' property 'characters'.
MATLAB: How to resize a uicontrol dynamically, depending on the length of the displayed string, or once at the initialization depending on the longest string in the ‘String’ property
arraycelldynamicguilengthMATLABpop-uppopupmenusize;stringuicontrol
Best Answer