MATLAB: How to get a numerical value from Edit Text at a GUI and use it in same program

guitext edit box

I'm trying to build a control interface for Lego Mindstorms using Matlab, but I need to read the power, given by the Text Edit box. How can I do that?

Best Answer

str2double(get(handles.editbox_5, 'String')) %replace editbox_5 with actual name of edit box
Related Question