x=sum(ceil(6*rand(2,n))) % Roll a pair of dice stairs([min(x) sort(x)],[0:1/length(x):1]) % Plot the c.d.f of x n = 10. MATLAB probability demos.
確定! 回上一頁