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

5 visualizzazioni (ultimi 30 giorni)
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!!!

Risposte (0)

Categorie

Scopri di più su Linear and Nonlinear Regression in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by