While writing and posting my Question some new keywords came in my head and I found my answer in a similar question.
Answer of similar question is below.
Hi,
add the handle from the uicontrol to the handles structure:
handles.edit = zeros(1, 10);
handles.edit(i) = uicontrol('style', 'edit', ...);
guidata(hObject, handles)
in the save callback you collect the entries:
entries = cell(1, 10);
for i=1:10
entries{i} = get(handles.edit(i), 'string');
end
Titus
