Re: [問題] 產生random vector已回收

看板MATLAB作者 (無華之果)時間16年前 (2009/03/16 08:15), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/7 (看更多)
theda = 2*pi.*rand(1000,1); phi = pi.*rand(1000,1) ; RandR = zeros(1000,3); RandR(:,1) = sin(phi-pi/2).*cos(theda); RandR(:,2) = sin(phi-pi/2).*sin(theda); RandR(:,3) = cos(phi-pi/2); 希望有對XD -- 天下最難的事,就是享受最簡單平凡的日子 而最簡單平凡的日子,往往是天下最單純的幸福 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 207.237.24.41
文章代碼(AID): #19lPeTyh (MATLAB)
文章代碼(AID): #19lPeTyh (MATLAB)