My getting error "Error using bitsrl (line 51) Function bitsrl is not defined for inputs of data type double."

5 views (last 30 days)
A= [0 1 -1 0 -1 1 -1 0];
B= [0 1 0 1 -1 0 -1 1];
[row col]=size(A);
i=0;
Y=0;
n=1:8;
for i=1:row for j=1:col if (A(i,j)==1) Y=Y+B C1=bitsrl(Y,1); j=j+1; end end end I want to shift bits to right side whenever A(i,j)=1. for further plz refer to the flowchart. Thank u!!!

Answers (0)

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!