3d animation not working

Offen
#390 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@harshpurwar arbeitet bereits daran.

Seit 16.10.2021.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

dt = .01;
[x, y, z] = deal( 0 );
[X,Y,Z] = sphere(30);
surf(X,Y,Z,'edgecolor',[1 1 1]*0.8,'Facecolor','none')
hold on
k = 0;
while norm([x y z])^2 < 1 && k < 1000
    t = 180*(rand-1);
    p = 180*(rand-1);
		% spherical system of coordinates
    x = x + dt*cosd(t)*cosd(p);
    y = y + dt*cosd(t)*sind(p);
    z = z + dt*sind(p);
    k = k + 1;
    pause(0.1)
    plot3(x,y,z,'.b')
end 
hold off

It is supposed to be random walk in 3d.
results in: https://chart-studio.plotly.com/~danton267/1370/#/

Vorherrschende Sprache
MATLAB
Sterne
413
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus plotly/plotly_matlab

Alle Issues in plotly/plotly_matlab

Ähnliche Issues

Weitere Issues zu MATLAB

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.