Hey guys, today i just started learn about GUI in matlab so bear with me. I wanted to get input from an edit text and display it on a static text using a button, where if i click the button the input on the edit text displayed on the static text.
No products are associated with this question.
In the button callback
% Get edit text edit1String = get(handles.edit1, 'string'); % Display it on a static text label set(handles.staticText, 'String', edit1String);
You might look at this framework that demonstrates all that for you. http://www.mathworks.com/matlabcentral/fileexchange/24224 You just replace the simple functions with your own code. It has all the essential things like scroll bars, push buttons, radio buttons, etc. and when you click on them they do simple things like display text saying that you clicked on them. You replace that code with useful code that does something you want.
For most of the people, the Matlab's GUI editor (GUIDE) is quite annoying. But if you want to learn more about GUIDE, see the link below
Play games and win prizes!Learn more