Comment declare le Edittext
htext2= uicontrol(H,...
'Units','points', ...
'style','edit',...
'ForeGroundColor',[0 0 0],...
'BackgroundColor',[1 1 1], ...
'Position',[20 100 200 200], ...
'fontname','Time new roman',...
'ListboxTop',20,...
'Max',20,...
'Min',10,...
'fontsize',10,...
'Tag','edittext',...
'String','');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
comment recperer la contenue de Edit text dans le variable htext2
htext2=findobj('tag','edittext');
text=(get(htext2,'string'))