批踢踢實業坊
›
看板
MATLAB
關於我們
聯絡資訊
返回看板
作者
sunnyming (陽光小展)
看板
MATLAB
標題
[運算] 請教高手!!
時間
Sun Jul 15 20:08:25 2012
a=0.03; b=randsample(1:8,1000,'true',[a*[1:7],1-28*a]); histc(randsample(1:8,1000,'true',[a*[1:7],1-28*a]),1:8) 如果我想讓上面的語法 模擬重複10000次之後 求出樣本1~8最後的平均值 這個語法應該怎麼寫?? --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.119.143.8