-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd.m
39 lines (26 loc) · 1.22 KB
/
md.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
32
33
34
35
36
37
38
39
% Function for calculate mandelbrot set by using Modified mandelbrot set
%----------------------------------------------------------------------------------------------------------------------------------
% 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
%-----------------------------------------------------------------------------------------------------------------------------------
%Function for calculate mandelbrot set by using Modified mandelbrot set
function Wo=md(siz)
%STEP 1:Initial values for modified mandelbrot set
col=20;
m=siz;
cx=;
cy=;
l=;
%STEP 2:Generation of original mandelbrot set
x=linspace(cx-l,cx+l,m);
y=linspace(cy-l,cy+l,m);
[X,Y]=meshgrid(x,y);
Z=zeros(m);
for k=1:col;
Z=Z.^2+C;
W=exp(-abs(Z));
end
%STEP 3:Generation of modified mandelbrot setLO=W;
%%% if you need complete code contact me...
Wo=uint8(W);
end