필터 지우기
필터 지우기

array shifting problem, help

조회 수: 3 (최근 30일)
kelami
kelami 2012년 11월 29일
hi, l am new at matlab, probably the question is stupid.
l have an array like
[6 5 4 3 0 1 2 4 0 0 0]
l want to shift this array left but the result must be
[5 4 3 0 1 2 4 0 0 0 0]
l dont want to it be circular shifted.
thank you

채택된 답변

Matt Fig
Matt Fig 2012년 11월 29일
편집: Matt Fig 2012년 11월 29일
V = [6 5 4 3 0 1 2 4 0 0 0]
V = [V(2:end-1) 0]
  댓글 수: 3
Matt Fig
Matt Fig 2012년 11월 29일
Oops, sorry. Just modify it:
V = [6 5 4 3 0 1 2 4 0 0 0]
V = [V(2:end) 0]
kelami
kelami 2012년 11월 29일
thanks a lot

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by