Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Y^x の 150,000 個のランダムな値をシミュレートし、それらのヒストグラムを作成したいと考えています。matlabでこれを行う方法を教えてもらえますか?
Y = y_lower + (y_upper-y_lower) * rand(150000,1); x = x_lower + (x_upper-x_lower) * rand(150000,1); U = Y .^ x; hist(U);
Y5 から 8 およびx2 から 2.5 の出力例:
Y
x