MATLAB: Is there any possibility that, the string what I selected from the popup menu can be displayed as a label for a figure

MATLAB

Is there any possibility that, the string what I selected from the popup menu can be displayed as a label for a figure?

Best Answer

Take the string E{1}(E{2}) that you got from your previous question http://www.mathworks.co.uk/matlabcentral/answers/46177-how-to-get-the-data-from-a-popup-menu-and-display-the-selected-data-in-list-box, and pass it to xlabel() or ylabel() as appropriate.
ylabel(E{1}(E{2}))