forked from mikexcohen/MATLAB_BrainAndCognitiveScientists
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverart.m
More file actions
39 lines (23 loc) · 723 Bytes
/
Copy pathcoverart.m
File metadata and controls
39 lines (23 loc) · 723 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
30
31
32
33
34
35
36
37
% Book cover: symmetric matrix with images, different color on diagonal.
n=10;
i=-n:.1:n;
d=zeros(length(i));
for ii=1:length(i)
for jj=1:length(i)
d(ii,jj) = log( complex(i(ii),i(jj)) );
end
end
d(~isfinite(d))=min(d(:));
surf(abs(d)+real(d)+imag(d)), axis xy, axis square, axis off
shading interp, rotate3d on, set(gcf,'color','k')
cmap=(1+[cos(linspace(0,pi*2,100)); sin(linspace(0,pi*2,100)); cos(linspace(0,pi*2,100))])/2;
% colormap(cmap')
circmap = (1+[cos(linspace(0,pi*2,100)); sin(linspace(0,pi*2,100)); cos(linspace(0,pi*2,100) + pi)])/2;
colormap(circmap')
view([ -125 20 ])
view([ -40 -50 ])
view([ -30 40 ])
% diagonal
view([ -15 50 ])
view([ -45 65 ])
view([ -160 60 ])