if sced == 0;	
	set (sli_noise,'Visible', 'off');
	set (noise_min, 'Visible', 'off');
	set (noise_max, 'Visible', 'off');
	set (noise_label, 'Visible', 'off');
	set (noise_cur, 'Visible', 'off');
	sigma1 = .2;	
	sli_hetero1 = uicontrol (gcf,...
			'Style', 'slider',...
			'Position', [300 120 120 20],...
			'Min', -6, 'Max', 4, 'Val', log2(sigma1),...
			'CallBack', ['sigma1 = (2.^(get(sli_hetero1, ''Val'')));',...
			'set(hetero1_cur, ''String'', num2str(sigma1));'  'error_inc']);
	

	hetero1_max = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [420 120 30 20],...
		'String', num2str (get(sli_hetero1, 'Max')));
		 hetero1_min = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [270 120 30 20],...
		'String', num2str (get(sli_hetero1, 'Min')));	

	sigma2 = 1;
	sli_hetero2 = uicontrol (gcf,...
			'Style', 'slider',...
			'Position', [300 100 120 18],...
			'Min', -6, 'Max', 4, 'Value', log2(sigma2),...
			'CallBack', ['sigma2 = (2.^(get(sli_hetero2, ''Val'')));',...
			'set(hetero2_cur, ''String'', num2str(sigma2));'  'error_inc']);
	
	hetero2_max = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [420 100 30 20],...
		'String', num2str (get(sli_hetero2, 'Max')));
		
	hetero2_min = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [270 100 30 20],...
		'String', num2str (get(sli_hetero2, 'Min')));	
	hetero_label = uicontrol (gcf,...
		'Style', 'text',...
		'String', 'Min. & Max. Variation - log 2',...
		'Pos', [230 145 280 20]);
	hetero1cur_label = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [230 120 35 20],...
		'String', 'Min:');
	hetero2cur_label = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [230 100 35 20],...
		'String', 'Max:');	
	hetero1_cur = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [455 120 55 20],...
		'String', num2str(sigma1));
	hetero2_cur = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [455 100 55 20],...
		'String', num2str(sigma2));
elseif sced == 1;
	set (sli_noise,'Visible', 'off');
	set (noise_min, 'Visible', 'off');
	set (noise_max, 'Visible', 'off');
	set (noise_label, 'Visible', 'off');
	set (noise_cur, 'Visible', 'off');
	sigma1 = 1;
	sli_hetero1 = uicontrol (gcf,...
			'Style', 'slider',...
			'Position', [300 120 120 20],...
			'Min', -6, 'Max', 4, 'Value', log2(sigma1),...
			'CallBack', ['sigma1 = (2.^(get(sli_hetero1, ''Val'')));',...
			'set(hetero1_cur, ''String'', num2str(sigma1));'  'error_dec']);
	

	hetero1_max = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [420 120 30 20],...
		'String', num2str (get(sli_hetero1, 'Max')));
		
	hetero1_min = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [270 120 30 20],...
		'String', num2str (get(sli_hetero1, 'Min')));	
	sigma2 = .2;
	sli_hetero2 = uicontrol (gcf,...
			'Style', 'slider',...
			'Position', [300 100 120 18],...
			'Min', -6, 'Max', 4, 'Value', log2(sigma2),...
			'CallBack', ['sigma2 = (2.^(get(sli_hetero2, ''Val'')));',...
			'set(hetero2_cur, ''String'', num2str(sigma2));'  'error_dec']);
	
	hetero2_max = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [420 100 30 20],...
		'String', num2str (get(sli_hetero2, 'Max')));
		%'Horiz', 'right');
	hetero2_min = uicontrol (gcf,...
		'Style', 'text',...
		'Position', [270 100 30 20],...
		'String', num2str (get(sli_hetero2, 'Min')));	
	hetero_label = uicontrol (gcf,...
		'Style', 'text',...
		'String', 'Max. & Min Variation - log 2',...
		'Pos', [230 145 280 20]);
	hetero1cur_label = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [230 120 35 20],...
		'String', 'Max:');
	hetero2cur_label = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [230 100 35 20],...
		'String', 'Min:');	
	hetero1_cur = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [455 120 55 20],...
		'String', num2str(sigma1));
	hetero2_cur = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [455 100 55 20],...
		'String', num2str(sigma2));
	
elseif sced == 2;	
	sig0 = .2;
	sli_noise = uicontrol (gcf,...
			'Style', 'slider',...
			'Position',[300 100 120 20],...
			'Min', -6, 'Max', 4, 'Value', log2(sig0),...
			'CallBack',  ['sig0 = (2.^(get(sli_noise, ''Val'')));',...
			'set(noise_cur, ''String'', num2str(sig0))']);
	
	noise_min = uicontrol (gcf, ...
		'Style', 'text', ...
		'Pos', [270 100 30 20],...
		'String', num2str (get(sli_noise, 'Min')));

	noise_max = uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [420 100 30 20],...
		'String', num2str(get(sli_noise, 'Max')),...
		'Horiz', 'right');

	noise_label =  uicontrol (gcf,...
		'Style', 'text',...
		'Pos', [270 130 130 20],...
		'String', 'Noise Level - log2');

	noise_cur = uicontrol (gcf, ...
		'Style', 'text',...
		'Pos', [405 130 45 20],...
		'String', num2str(sig0));

	set (sli_hetero1, 'Visible', 'off');
	set (sli_hetero2, 'Visible', 'off');
	set (hetero1_min, 'Visible', 'off');
	set (hetero1_max, 'Visible', 'off');
	set (hetero2_min, 'Visible', 'off');
	set (hetero2_max, 'Visible', 'off');
	set (hetero_label, 'Visible', 'off');
	set (hetero1_cur, 'Visible', 'off');
	set (hetero2_cur, 'Visible', 'off');
	set (hetero1cur_label, 'Visible', 'off');
	set (hetero2cur_label, 'Visible', 'off');
	set (sli_noise, 'Visible', 'on');
	set (noise_min, 'Visible', 'on');
	set (noise_max, 'Visible', 'on');
	set (noise_label, 'Visible', 'on');
	set (noise_cur, 'Visible', 'on');


   else;
	
	set (sli_noise, 'Visible', 'off');
	set (noise_min, 'Visible', 'off');
	set (noise_max, 'Visible', 'off');
	set (noise_label, 'Visible', 'off');
	set (noise_cur, 'Visible', 'off');
	set (sli_hetero1, 'Visible', 'off');
	set (sli_hetero2, 'Visible', 'off');
	set (hetero1_min, 'Visible', 'off');
	set (hetero1_max, 'Visible', 'off');
	set (hetero2_min, 'Visible', 'off');
	set (hetero2_max, 'Visible', 'off');
	set (hetero_label, 'Visible', 'off');
	set (hetero1_cur, 'Visible', 'off');
	set (hetero2_cur, 'Visible', 'off');
	set (hetero1cur_label, 'Visible', 'off');
	set (hetero2cur_label, 'Visible', 'off');
	sig0 = 0;
end;

 
