How to make a 2D scatter-plot with histogram bars for each axis?

3 views (last 30 days)
While I managed to draw a - yet - quite ugly 2D scatter plot of two data sets into the same plot, I'd like to add histogram bars for both sets for each axis. Just like this figure here: Phyton plot . How is this possible in Matlab? Any help, links, code examples etc. are appreciated.

Accepted Answer

Sowmya Aggarwal
Sowmya Aggarwal on 24 Apr 2017
scatterhist matlab function

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!