-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLSCmap.m
More file actions
29 lines (27 loc) · 689 Bytes
/
LSCmap.m
File metadata and controls
29 lines (27 loc) · 689 Bytes
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
clear all ,close all, clc
xvals=[];
for r=0:0.001:1
r
xold = 0.5;
for i=1:5000
xnew = r * 4 *xold *(1-xold);
xold = xnew;
end
% xnew=xold;
xss=xnew;
for i=0:1:5000
%%xnew = cos(pi*((4*r*(xold)^2-4*r*xold)+((1-r)*sin(pi*xold))-0.5));
xnew = r * 4 *xold *(1-xold);
xold = xnew;
xvals(1,length(xvals)+1) = r;
xvals(2,length(xvals)) = xnew;
if(abs(xnew-xss)<0.001)
break
end
end
end
plot(xvals(1,:),xvals(2,:),'.','LineWidth',.1,'MarkerSize',1.2,'Color',[0.15 0.4 1])
set(gca,'color','k','xcolor','w','ycolor','w')
set(gcf,'color','k')
xlabel('beta');
ylabel('x');