-1
當我嘗試運行此程序:Monte Carlo在MATLAB
我得到這個錯誤:
Error: "identifier" expected, ")" found.
凡方差0.02
和0.005
,平均是0.242
和0.536
,分別
當我嘗試運行此程序:Monte Carlo在MATLAB
我得到這個錯誤:
Error: "identifier" expected, ")" found.
凡方差0.02
和0.005
,平均是0.242
和0.536
,分別
第二行最後一行有一個.
。它應該是:
P = (Constant*A*B*(1.0/C))*(Drand.*(1.0-Erand));
而且,你的變化實際上並沒有0.02
和0.005
。想想吧;-)
+1指出「思考bug」 –
克里斯坦雷默,非常感謝您的善意幫助和信息。 – Bisu