clear; // 三角分布の発生 X = 0.5 * (rand(1,10000) + rand(1,10000)); // グラフのプロット subplot(2,1,1); plot(X); // ヒストグラム subplot(2,1,2); histplot(100,X);