%interpolation two every samples (two points in between every two samples) %makes even vector even vector and odd vector another odd numbered vector x8 = [5,8,11,14]; count99=1; for count3 = 1:1:length(x) x_interpolated1(:,count99) = x(:,count3); if count3 ~= length(x) count99=count99+1; x_interpolated1(:,count99) = (2*x(:,count3)/3+x(:,count3+1)/3); count99=count99+1; x_interpolated1(:,count99) = (x(:,count3)/3+2*x(:,count3+1)/3); count99=count99+1;
end
end
|