% Kurt Sanner
% Elec 301 Group Project
% December 15, 1999
% oversam.m

% this function takes a sampled signal and interleaves 15 additional samples
% in between each existing sample.  The values for the samples will be a linear
% progression from the first actual signal to the second actual signal.  Better
% techniques would use curve-fitting algorithms, beyond the scope of this
% project.

function [bigmatrix] = oversam(sigmatrix, deltastep);

for k = 1:length(sigmatrix)-1,
	val1 = sigmatrix(k);
	val2 = sigmatrix(k+1);
	step = (val2 - val1)/16;
	bigmatrix(16*(k-1)+1) = val1;
	for n = 1:15,
		inval = (round((val1+step*n)/deltastep)) * deltastep;
		bigmatrix(16*(k-1)+n+1) = inval;
	end
end
bigmatrix (16*k+1) = val2;

