- /
-
A Night Out with MATLAB
on 10 Oct 2022
- 215
- 884
- 1
- 15
- 280
% NB: this is a remix of 'Lake view to the West' by Jenny Bosten
% https://mathworks.com/matlabcentral/communitycontests/contests/4/entries/3431
X=-164:.646:164;
r=sqrt(X.^2+(X'-140).^2);
b=flip(pink.*winter);
j=[1 1 .9];
colormap([j;b(1:2:end,:)]);
for k=1:508
f(k,:)=circshift(r(460,:),randi([-7,7]),2)+k/9-15;
end
image([r;f])
axis([95 410 350 650],'off')
hold
a=-90:90;
x=-25*cosd(a);
y=24*sind(a);
fill([x x*.4]+268,[y -y]+468,j,'EdgeColor',j)