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

조회 수: 5 (최근 30일)
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!!!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by