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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2014년 2월 26일

댓글:

2014년 2월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by