- /
-
Barred spiral galaxy
on 10 Oct 2021
- 11
- 54
- 0
- 0
- 275
R=(randn(1,1e5))+2;
e=find(abs(R)<6);
R=R(e);
Theta=2*pi*randn(1,1e5);
X=1.5*R.*cos(Theta(e));
Y=R.*sin(Theta(e));
Z=exp(-((R.^2))/128).*sin(18*log(R+3)+2*angle(X+Y*1i))/5;
n=.04*randn(1,numel(e));
scatter3(X+n,Y+n,Z+n,1,abs(Z+n).^2)
axis('equal','off')
colormap jet
set(gcf,'Color','k')
view(2)