- /
-
Spiral galaxy
on 7 Oct 2021
- 10
- 78
- 1
- 0
- 277
R=(randn(1,1e5))+2
e=find(abs(R)<6)
R=R(e)
Theta=2*pi*randn(1,1e5)
X=R.*cos(Theta(e))
Y=R.*sin(Theta(e))
Z=exp(-((R.^2))/128).*sin(-9*log(R+3)+2*angle(X+Y*1i))/sqrt(8*pi)
n=.04*randn(1,numel(e))
scatter3(X+n,Y+n,Z+n,1,abs(Z+n))
axis('equal','off')
colormap jet
set(gcf,'Color','k')
view(2)