Azzera filtri
Azzera filtri

Conditional density plots in Matlab

4 visualizzazioni (ultimi 30 giorni)
Ali
Ali il 1 Dic 2022
Risposto: Muskan il 20 Mar 2023
Is there an option to visualize the conditional relationship between two variables using a conditional density plot, in a similar manner as done in R using the cdplot command.
I have looked through the statistics toolbox provided by Matlab but cannnot seem to find any similar commands.

Risposte (1)

Muskan
Muskan il 20 Mar 2023
Hi Ali,
As per my understanding, using the “ksdensity” function to estimate the data’s density and then using the “contour” or “contourf” function to produce the density plot, you may view the conditional density between two variables in a conditional density plot in MATLAB.
You may have a look at the following MATLAB documentation page for reference:
I hope the above information will be helpful in resolving your query.
Thanks,
Muskan

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by