sempanelset.m 841 Bytes
Newer Older
Simone Liuzzo's avatar
Simone Liuzzo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
function semdata=sempanelset(datadir,handles)
%SEMDATA=SEMPANELSET(DATADIR,HANDLES)
%
%DATADIR:	Data directory
%

errok=[handles.pushbutton10 handles.pushbutton11 handles.pushbutton16];		% zero, save, load
semdata.errdef=[handles.pushbutton10 handles.pushbutton16];		% zero, load
errno=[handles.pushbutton3 handles.pushbutton9];				% fitq, fitd
semdata.cordef=[handles.pushbutton13 handles.pushbutton14];		% initial, zero
corok=[handles.pushbutton14 handles.pushbutton12 handles.pushbutton15 ...
    handles.pushbutton17 handles.pushbutton20];					% zero, fit, save, load, retune
corno=handles.pushbutton13;							% initial
if exist(fullfile(datadir, 'skewnew.dat'),'file') == 2
    corok=[corok handles.pushbutton18];
else
    corno=[corno handles.pushbutton18];
end
set([errok corok],'Enable','On');
set([errno corno],'Enable','Off');
end