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

5 visualizaciones (últimos 30 días)
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!!!

Respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by