matrix for simulating 20 coin tosses
古いコメントを表示
Hello,
I am trying to create 20X1000 matrix which simulates 20 coin tosses 1000 times. So matrix is binary. then I would like create 20 number vector for counting ones in matrix. for example if number of ones in first row is 15, fifteenth number in vector will be increased by one. and I would like to show this vector as a graph so it shows how many rows had how many ones in it.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Monte-Carlo についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!