- /
-
Imagine the colorful mountains in 3D during twilight
on 8 Oct 2022
- 2
- 35
- 0
- 0
- 274
randn('state',0)
n=2*pi*[0:24]';
d=0.01;
L=49;
x=cos(0.11*n)+cos(0.13*n+pi/4)+0.5*randn(25,1);
f=[d:d:0.49]';
J=zeros(L,L);
c=@(k)cos(f(k)*n);
s=@(m)sin(f(m)*n);
for i=1:L
h=[c(i) s(i)];
for j=i+1:L
H=[c(j) s(j)];
O=[h H];
J(i,j)=x'*O*(O'*O\O'*x);
end
end
[x,y]=meshgrid(d:d:0.49);
surf(x,y,J);
view(-63,25)