3d animation not working

未關閉
#390 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@harshpurwar 已經在處理了。

開始於 2021年10月16日。

評估

這個 Issue 還沒有評估資料。

描述

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/#/

主要語言
MATLAB
星號
414
分支
166
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

plotly/plotly_matlab 的其他 Issue

查看 plotly/plotly_matlab 的全部 Issue

相似的 Issue

更多 MATLAB Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。