From what I understand, you want to increase the size of a vector to match a specified value, without losing any information. I believe the best way, this can be done is through interpolation.
Here's some code that shows how a vector can be expanded to an arbitrary size, by calculating the intermediate values via interpolation.
% new_size is the length you want the interpolated vector to be.
% x is the vector you want to "strech".
x = 0 : pi/6 : pi;
L = length(x);
new_size = 50;
X = interp1(1:L, x, linspace(1, L, new_size));
You can set the type of interpolation you want by setting the "method" parameter of the "interp1" function as shown in the following document: