Plot frequency in a histogram
古いコメントを表示
Hello! I am a beginner in matlab and have a question about plotting relative frequency in matlab. The case : I have a vector of zeros and ones and I wanted to count the frequency of 1's and 0's in the vector. I used the code : nnz(click==1). My vector is called click. The amount of clicks was 48 and bookings 68 (click==0). Now I want to show the percentage of bookings/clicks on the y axis and on the x as I want to have 2 bars of the amount of clicks and the amount of bookings. I am searching for hours now and have no idea how to plot this. Can someone help me out? Thank you in advance!
3 件のコメント
Geoff Hayes
2018 年 5 月 24 日
Rosalie van der Weide
2018 年 5 月 24 日
Star Strider
2018 年 5 月 24 日
編集済み: Image Analyst
2018 年 5 月 24 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!