MATLAB: Adding Zeroes to a Vector

MATLABmatrixvectors

I have a row vector which I have created by repeating the same vector many times and would like to add zeroes onto the vector, so for example if I have a row vector which is 1×306, I need to add a row of 102 zeroes to the rest of the vector to make it 1×408. What would be the easiest way of doing this?

Best Answer

vector = [vector,zeros(1,102)]
Related Question