How to get a 2D matrix estimate from Ksdensity for bivariate data

25 ビュー (過去 30 日間)
Hammam Orabi
Hammam Orabi 2020 年 10 月 16 日
コメント済み: Nagasai Bharat 2020 年 10 月 23 日
Hello,
I'm trying to get the function ksdensity to return a matrix instead of a vector when I use it for a bivariate input (signal of I and Q).
The problem is that ksdensity only returns a vector even if the points are inputted as a 2 column matrix.
Can anybody help ?

回答 (1 件)

Nagasai Bharat
Nagasai Bharat 2020 年 10 月 21 日
Hi,
From my understanding you are trying to get a 2D output from the bivariate data and using the ksdensity function you are getting a vector. The following MATLAB Answer would likely help you achive your objective.
  2 件のコメント
Hammam Orabi
Hammam Orabi 2020 年 10 月 21 日
Hi,
You are right in your understanding. But the difference is that for my data (Baseband modulated signal) the variables are not independent, that's why I cant generate KSD for each var and multiply their pdfs.
Nagasai Bharat
Nagasai Bharat 2020 年 10 月 23 日
Hi,
There is an entry in the file exchange that does 2-d kernel density esimation:
You could try this.

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by