if sced == 0;
	sig0 = (((sigma2-sigma1)/(4)).*(xdata+2)) + (sigma1);
elseif sced == 1;
	sig0 = (((sigma2-sigma1)/(4)).*(xdata+2)) + (sigma1);
end;
