problem in key generation ( chaotic 3D)

hi friends .... how are you.
I have problem when key generation ( chaotic 3D) and store results in 3 arrays 1*3888801 , but all values in cells are (NAN) , why ?
the code :
function [Rk1,Gk2,Bk3] = FUC_keis_R_G_B(Rk1,Gk2,Bk3,sizeimage)
% control parameters
a(1) = 35; b(1) = 1.3; c(1) = 3; d(1) = 8; e(1) = 10; f(1) = 2; g(1) = 5 ; h(1) = 0.5 ;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for n=1:sizeimage
Rk1(n+1)=a*(Gk2(n)-Rk1(n))+b*Gk2(n)*Bk3(n);
Gk2(n+1)=-c*Rk1(n)*Bk3(n)+d*Gk2(n)+e*Rk1(n);
Bk3(n+1)=f*Rk1(n)*Gk2(n)-g*Bk3(n)+h*Rk1(n);
end
also , I want code used above keis with encryption (r , g,b) image colore

3 Comments

Could you give us some sample input?
Also please show
nnz(~isfinite(Rk1))
nnz(~isfinite(Gk2))
nnz(~isfinite(Gk3))
Rk1(1)=0.5684;
Gk2(1)=0.4284;
Bk3(1)=0.2680;
%%%%%%%%%%%%%%%%%%
[rows,columns ,numberOfColorBands]=size(rgbImage); % %%%% 540x720 uint8
This does not answer my questions about sample input or the number of non-finite values in the variables.

Sign in to comment.

Answers (2)

Samaa Yasser
Samaa Yasser on 11 Apr 2021
@omar A.alghafoor please can i contact with you i want to ask you about 3d chaotic generation ? i want a help please

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 20 Apr 2020

Edited:

on 11 Apr 2021

Community Treasure Hunt

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

Start Hunting!