MATLAB: Error in bit shifting operation MATLABmatrixmatrix manipulation 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] Best Answer circshift(a,[0 -2]) Related SolutionsMATLAB: How to use bit shift operations. Masazumi - use bitshift to shift the bits of your integers. MATLAB: Change binary string to decimal try use this is code:GGG =[ 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1]out = GGG*2.^(size(GGG,2)-1:-1:0).'; Related QuestionHow to group elements of a logical arrayHow to select the best matrix from a set of matrices and label it as ‘TEC’Bit missing after circular shiftCreating a large matrix with a pattern
Best Answer