how to density plot of a scatter plot?

Hi every one,I have scatter plotted of two vectors of the same dimension, how can I obtain the density plot of that? I've tried many functions such as "Density scatter", "dscatter" and etc but no one was useful. would you please give me some tips?

Asked:

on 9 Sep 2017

Answered:

on 9 Sep 2017

Community Treasure Hunt

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

Start Hunting!