-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
arnoldy.m
31 lines (19 loc) · 1.33 KB
/
arnoldy.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
% Arnold map - Function - y values
% -----------------------------------------------------------------------------------------------------------------------------------
% key generation using Chaotic map function (Arnold map)
function [outImg]=arnoldy(o,p)
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP1 : Creating empty martrix for keys
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 2: Reading initial values
x=o; %Initial values
y=p; %Initial values
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 3: Initialize number of iteration for the map
-------------------------------------------------------------------------------------------------------------------
% STEP 4: Arnold map equation
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 5: Output (Chaotic keys)
outImg= reshape(k,[1,65536]);
end
% -----------------------------------------------------------------------------------------------------------------------------------