How to generate a joint probability matrix from a data matrix, Part 2

2 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2018 年 3 月 17 日
編集済み: alpedhuez 2018 年 3 月 17 日
To follow up, suppose I now want to create bins:
Suppose the input is
*bin center = (0.5 1 1.5)
*bin edge = (0.25 0.75 1.25)
*data matrix =
X Y
0.7 1
1 0.3
Then the output will be
X Y Prob
0.5 0.5 0
0.5 1 0.5
0.5 1.5 0
1 0.5 0.5
1 1 0

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by