-
Notifications
You must be signed in to change notification settings - Fork 1
/
tent.m
31 lines (19 loc) · 862 Bytes
/
tent.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% key generation using Chaotic map function (Tent map)
function [out]=tent(x,a,siz)
%Note: If you are using my code for your system or project, you should always cite my paper as a reference.
%K C.Jithin, SyamSankar, "Colour image encryption algorithm combining Arnold map, DNA sequence operation, and a Mandelbrot set", Journal of Information Security and Applications, Elsevier, Volume 50, February 2020, DOI: https://doi.org/10.1016/j.jisa.2019.102428
%STEP1 : Creating an empty martrix for keys
k = double(zeros(siz,siz));
%STEP 2: Reading initial & parameter values
%STEP 3: Initialize number of iteration for the map
disp('Created by Jithin K C');
r= 1 ; % Number of iteration
for j=1:r
for i = 1:siz*siz
% If you need complete code contact me
end
end
end
k=d;
out= reshape(k,[siz,siz]);
end