Is there any "single command" to set multiple edit text boxes in matlab gui for example, we use four lines for setting four edit text z=44; 1. set(handles.edit1,'string',z); %pasting value of z to all edit texts 2. set(handles.edit2,'string',z); 3. set(handles.edit3,'string',z); 4. set(handles.edit4,'string',z);
but i need a single lined command to do the same to compact my code. the idea about new code is
set(handles.edit1,handles.edit2,handles.edit3,handles.edit4,'string',z);
Best Answer