1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| function myGUI
fig=figure(...
'Units','characters',...
'MenuBar','none',...
'Name','essai',...
'NumberTitle','off',...
'Position',[103.8 29.1538461538462 112 32.3076923076923],...
'Resize','off',...
'Tag','figure1');
uicontrol(...
'Parent',fig,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Position',[19.8 20.6153846153846 20.2 3.92307692307692],...
'Tag','edit1',...
'Style','edit');
uicontrol(...
'Parent',fig,...
'Units','characters',...
'Position',[49.8 20.6153846153846 20.2 3.92307692307692],...
'String','save',...
'Callback',@save2txt,...
'Tag','pushbutton1');
function save2txt(obj,event)
handles=guihandles(gcbf);
a=get(handles.edit1,'string');
if util_a==0;
h=waitbar(0,'Sauvegarde Force et Déplacement');
end;
name=get(edit_nom,'string');
fname=['E:\Sauvegarde_Exp_Biceps\Datas\' name,'_'];
Save ('test.txt',*.txt); |
Partager