function initspek()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.

load initspek                          

a = figure('Units','normalized', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'PaperType','a4letter', ...
	'Position',[0.0328125 0.0332031 0.9375 0.882812], ...
	'Tag','Fig1');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'BusyAction','cancel', ...
	'Callback','spekgui specmethod', ...
	'HorizontalAlignment','left', ...
	'Max',5, ...
	'Min',1, ...
	'Position',[0.81781 0.881201 0.160696 0.0522193], ...
	'String',['Periodogram          ';'Averaging            ';'Welch                ';'Time windowing       ';'Frequency windowing  '], ...
	'Style','popupmenu', ...
	'Tag','specmethod', ...
	'Value',1);
b = axes('Parent',a, ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat1, ...
	'LineStyleOrder',['- ';'--';': ';'-.'], ...
	'Position',[0.0399181 0.549608 0.764585 0.398172], ...
	'Tag','Spec-axis', ...
	'XColor',[0 0 0], ...
	'XLim',[0 0.5], ...
	'XLimMode','manual', ...
	'YColor',[0 0 0], ...
	'ZColor',[0 0 0]);
c = text('Parent',b, ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Position',[0.249727 -0.0612813 0], ...
	'String','Frequency', ...
	'Tag','Axes1Text4', ...
	'VerticalAlignment','cap');
set(get(c,'Parent'),'XLabel',c);
c = text('Parent',b, ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Position',[-0.0147219 0.495822 0], ...
	'Rotation',90, ...
	'Tag','Axes1Text3', ...
	'VerticalAlignment','baseline');
set(get(c,'Parent'),'YLabel',c);
c = text('Parent',b, ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','right', ...
	'Position',[-0.0261723 1.12813 0], ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(c,'Parent'),'ZLabel',c);
c = text('Parent',b, ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Position',[0.249727 1.01671 0], ...
	'String','Spectral estimate', ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(c,'Parent'),'Title',c);
b = axes('Parent',a, ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat2, ...
	'LineStyleOrder',['- ';'--';': ';'-.'], ...
	'Position',[0.0399181 0.0835509 0.429887 0.348564], ...
	'Tag','Covf-axis', ...
	'XColor',[0 0 0], ...
	'YColor',[0 0 0], ...
	'ZColor',[0 0 0]);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'FontSize',20, ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[0.499029 -0.0700637 0], ...
	'String','\tau', ...
	'Tag','Axes1Text4', ...
	'VerticalAlignment','cap');
set(get(c,'Parent'),'XLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[-0.0524272 0.496815 0], ...
	'Rotation',90, ...
	'Tag','Axes1Text3', ...
	'VerticalAlignment','baseline');
set(get(c,'Parent'),'YLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','right', ...
	'Interruptible','off', ...
	'Position',[-0.0932039 2.63057 0], ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(c,'Parent'),'ZLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[0.499029 1.01911 0], ...
	'String','Covariance estimate', ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(c,'Parent'),'Title',c);
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Callback','spekgui specscale', ...
	'HorizontalAlignment','left', ...
	'Max',2, ...
	'Min',1, ...
	'Position',[0.81781 0.818538 0.158649 0.0496084], ...
	'String',['Linear scale';'Log scale   '], ...
	'Style','popupmenu', ...
	'Tag','specscale', ...
	'Value',1);
b = axes('Parent',a, ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat3, ...
	'LineStyleOrder',['- ';'--';': ';'-.'], ...
	'Position',[0.503582 0.0822454 0.468782 0.347258], ...
	'Tag','Data-axis', ...
	'XColor',[0 0 0], ...
	'YColor',[0 0 0], ...
	'ZColor',[0 0 0]);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'FontSize',20, ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[0.499109 -0.0702875 0], ...
	'Tag','Axes1Text4', ...
	'VerticalAlignment','cap');
set(get(c,'Parent'),'XLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[-0.0481283 0.495208 0], ...
	'Rotation',90, ...
	'Tag','Axes1Text3', ...
	'VerticalAlignment','baseline');
set(get(c,'Parent'),'YLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','right', ...
	'Interruptible','off', ...
	'Position',[-1.07843 2.64217 0], ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(c,'Parent'),'ZLabel',c);
c = text('Parent',b, ...
	'ButtonDownFcn','ctlpanel SelectMoveResize', ...
	'Color',[0 0 0], ...
	'HandleVisibility','callback', ...
	'HorizontalAlignment','center', ...
	'Interruptible','off', ...
	'Position',[0.499109 1.01917 0], ...
	'String','Data', ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(c,'Parent'),'Title',c);
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Position',[0.895599 0.552219 0.0890481 0.0326371], ...
	'String','data', ...
	'Style','edit', ...
	'Tag','importname');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'BusyAction','cancel', ...
	'Callback','spekgui estimate', ...
	'HorizontalAlignment','left', ...
	'Max',2, ...
	'Min',1, ...
	'Position',[0.816786 0.659269 0.157625 0.0469974], ...
	'String',['From data    ';'From spectrum'], ...
	'Style','popupmenu', ...
	'Tag','covfmethod', ...
	'Value',1);
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Position',[0.81781 0.943864 0.149437 0.0261097], ...
	'String','Spectral estimation method:', ...
	'Style','text', ...
	'Tag','StaticText2');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Position',[0.816786 0.711488 0.157625 0.0221932], ...
	'String','Covariance estimation method:', ...
	'Style','text', ...
	'Tag','StaticText3');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Position',[0.823951 0.479112 0.131013 0.0221932], ...
	'String','Sampling interval:', ...
	'Style','text', ...
	'Tag','StaticText4');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','spekgui dt', ...
	'Position',[0.819857 0.438642 0.139202 0.04047], ...
	'Style','edit', ...
	'Tag','dt');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Callback','spekgui zoom', ...
	'HorizontalAlignment','left', ...
	'Max',7, ...
	'Min',1, ...
	'Position',[0.504606 0.0130548 0.0921187 0.04047], ...
	'String',['Zoom 1 ';'Zoom 2 ';'Zoom 4 ';'Zoom 8 ';'Zoom 16';'Zoom 32';'Zoom 64'], ...
	'Style','popupmenu', ...
	'Tag','zoom', ...
	'Value',1);
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','spekgui location', ...
	'Position',[0.609007 0.0156658 0.252815 0.0365535], ...
	'Style','slider', ...
	'Tag','location');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Callback','spekgui close', ...
	'Position',[0.880246 0.0182768 0.0992835 0.037859], ...
	'String','Close', ...
	'Tag','Pushbutton1');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'BusyAction','cancel', ...
	'Callback','spekgui import', ...
	'Position',[0.816786 0.550914 0.0767656 0.0365535], ...
	'String','Import', ...
	'Tag','Pushbutton2');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'BusyAction','cancel', ...
	'Callback','spekgui param', ...
	'Position',[0.818833 0.746736 0.155578 0.0326371], ...
	'Style','edit', ...
	'Tag','param');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Position',[0.82088 0.780679 0.0808598 0.0221932], ...
	'String','Parameter:', ...
	'Style','text', ...
	'Tag','StaticText1');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Callback','spekgui export', ...
	'Position',[0.815763 0.509138 0.0767656 0.0365535], ...
	'String','Export', ...
	'Tag','Pushbutton2');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Position',[0.895599 0.510444 0.0890481 0.0326371], ...
	'String','estdata', ...
	'Style','edit', ...
	'Tag','exportname');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Position',[0.821904 0.631854 0.148414 0.0208877], ...
	'String','Number of lags', ...
	'Style','text', ...
	'Tag','StaticText5');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','spekgui covflength', ...
	'Position',[0.82088 0.596606 0.149437 0.0300261], ...
	'String','100', ...
	'Style','edit', ...
	'Tag','covflength');
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701961 0.701961 0.701961], ...
	'Callback','spekgui zoomspec', ...
	'HorizontalAlignment','left', ...
	'Max',7, ...
	'Min',1, ...
	'Position',[0.0429887 0.463446 0.0921187 0.04047], ...
	'String',['Zoom 1 ';'Zoom 2 ';'Zoom 4 ';'Zoom 8 ';'Zoom 16';'Zoom 32';'Zoom 64'], ...
	'Style','popupmenu', ...
	'Tag','zoomspec', ...
	'Value',1);
b = uicontrol('Parent',a, ...
	'Units','normalized', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','spekgui locationspec', ...
	'Position',[0.140225 0.463446 0.564995 0.0365535], ...
	'Style','slider', ...
	'Tag','locationspec');
