error in bit shifting operation

조회 수: 2 (최근 30일)
Raza Ali
Raza Ali 2014년 2월 26일
댓글: Raza Ali 2014년 2월 26일
a=[1 0 0 0 0 0 1 0 1]
i want to shift these bits according to my requirement
like i want them to shift left side two bits
b=[0 0 0 0 1 0 1 1 0]

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 26일
circshift(a,[0 -2])
  댓글 수: 1
Raza Ali
Raza Ali 2014년 2월 26일
i have
a= [0 0 1 0 1 0 1 1]
i want this convert it in decimal value 43

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

추가 답변 (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