`r = 3.8;size = 9;L(1)= 0.23;for i=2:size L(i) = r*L(i-1)*(1-L(i-1));endfor i=1:9 S(i)=floor(abs(L(i))); A(i)=abs(L(i)); D(i)=(A(i)-S(i))*10^14;K(i)=mod(D(i),256);end`

and why some values of k in decimal points.?

Skip to content# MATLAB: Why taking mod this problem is occur ? where is the problem.

Embedded CoderHDL CoderMATLABmatlab codermod

`r = 3.8;size = 9;L(1)= 0.23;for i=2:size L(i) = r*L(i-1)*(1-L(i-1));endfor i=1:9 S(i)=floor(abs(L(i))); A(i)=abs(L(i)); D(i)=(A(i)-S(i))*10^14;K(i)=mod(D(i),256);end`

and why some values of k in decimal points.?

## Best Answer