?? test_dir.m
字號:
% # of sample pointsn_samples = 1000;p = ones(3,1)/3;% Low Entropyalpha = 0.5*p;% High Entropy%alpha = 10*p;% draw n_samples random points from the 3-d dirichlet(alpha),% and plot the resultspoints = zeros(3,n_samples);for i = 1:n_samples points(:,i) = dirichletrnd(alpha);endscatter3(points(1,:)', points(2,:)', points(3,:)', 'r', '.', 'filled');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -