function yy= expand(y,ndot,method)

x = 1:length(y);
xx = linspace(1,length(y),ndot);
switch method
	case 'spline'
	yy = uint8(spline(x,y,xx));
	case 'pchip'
	yy = uint8(pchip(x,y,xx));
end

