フィルターのクリア

Plotting Joint Probability and histcounts2 results

13 ビュー (過去 30 日間)
j atkinson
j atkinson 2016 年 4 月 14 日
コメント済み: Manuela Bucci 2016 年 6 月 3 日
Hi, please be patient I am still inexperienced with Matlab, I have two variables H and T and would like to create a joint probability table, I have used histcounts2 to create the desired table of results however I would like to be able to plot and present the data in a manner similar to the attached image. Any ideas?
%histogram code hst = histcounts2(H1, T1, 0:0.5:10, 1.5:0.5:12)
%desired plot

回答 (1 件)

Steven Lord
Steven Lord 2016 年 4 月 14 日
Call histogram2 instead of histcounts2 if you want to create a picture of the 2-D histogram.
  1 件のコメント
Manuela Bucci
Manuela Bucci 2016 年 6 月 3 日
Hi. I have exactly the same problem. I have the table with the number of occurrences from histcounts2, and I have the coolers plot from histogram2. I can't find the way to plot the occurrences as labels in the box of the plot. Any suggestion? Thanks in advance for your help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by