MATLAB: How to assisgn char data into empty Edit Text in Matlab GUI

edit textgui

%I have a data which its class is char. I need to write this data into edit text in my GUI.
tp=0.99954;
scale_ppm=(tp-1)*10^6 %ppm
scale=sprintf('scale %10.4f ppm \n',scale_ppm) %char
%I want to assign "scale" into edit text (tag is edit1) in my GUI. Which codes exactly I need to use?
thanks in advance.

Best Answer

Assuming you created your GUI using GUIDE:
set(handles.edit1,'String',scale)
Related Question