[Scilab-users] How can I make a movie that shows how the sphere rotates around the z-axis?

Heinz Nabielek heinznabielek at me.com
Fri Jul 2 00:15:25 CEST 2021


Colleagues:

the code below generates 14,500 random points in a spherical volume.
How can I make a movie that shows how the sphere rotates around the z-axis? And how do I store the animation? animaGIF does not exist on my Scilab 6.1 in my macOS 10.15.7

Heinz


R=23;
N=14500;
r=grand(N,1,'unf',0,R);
phi=grand(N,1,'unf',0,2*%pi);
theta=grand(N,1,'unf',0,%pi);
x=r.*cos(phi).*sin(theta);
y=r.*sin(phi).*sin(theta);
z=r.*cos(theta);
scatter3d(x,y,z,msizes=4);
gca().rotation_angles = [60, 60];


______________
Dr Heinz Nabielek
Schüttelstrasse 77A/11
A-1020 Wien, Österreich
Tel +43 1 276 56 13
cell +43 677 616 349 22
heinznabielek at me.com


More information about the users mailing list