MATLAB: Writing two integer together into edit text. handlestext; a=1787; b=4; %I need to add b to the end of a, like this "17874". Then I need to write this number into edit text in GUI. Best Answer Use something like c = sprintf('%d%d',a,b); set(handles.edit_text, 'String', c);where the UI control is called handles.edit_text (or whatever it's called in your GUI). Related SolutionsMATLAB: How to clear the edit text automatically In your button callback functionset(handles.edit1,'String','');where edit1 is your edit text MATLAB: Combination of Pushbutton and Edit Text. Clicking on the uicontrol('Style', 'edit') will activate any ButtonDownFcn property it may have.Are you certain that you want to be creating an array of edit controls? Perhaps it would make more sense to create a uitable() ? Related QuestionSet Edit Text EmptyCommand Window Display Values to GUI’s Static Text.How to append text to the end of an edit text controlConcatenating cells together
Best Answer