MATLAB Answers

Seba.V
0

How can I shift a vector numerically to the right (or the left) by adding zeros to the side of the array?

Asked by Seba.V
on 13 Aug 2019
Latest activity Answered by madhan ravi
on 13 Aug 2019
Supposing I have a vector x=[1 2 3] and I need it to shift it to the right of two integers how can i generate a new vector x1=[0 0 1 2 3]

  0 Comments

Sign in to comment.

1 Answer

Answer by madhan ravi
on 13 Aug 2019
 Accepted Answer

x1=[zeros(1,2),x]

  0 Comments

Sign in to comment.