필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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]

채택된 답변

madhan ravi
madhan ravi 2019년 8월 13일
x1=[zeros(1,2),x]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by