Re: [問題] 產生random vector已回收
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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 3 之 7 篇):
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章