Borrar filtros
Borrar filtros

how to create scatter and histogram plots in the same graph?

7 visualizaciones (últimos 30 días)
Maryam Hamrahi
Maryam Hamrahi el 16 de En. de 2019
Editada: Maryam Hamrahi el 17 de En. de 2019
I want to combine scatter and histogram plots in the same graph. I also do not want to show the histogram data in the y axis, and only show the scatter data. please see the attached figure. For instance, I want to combine the following plots:
scatter (x1, y, x2, y)
hist (z)
I appreciate any suggestions. Thanks in advance.

Respuestas (1)

Basil C.
Basil C. el 16 de En. de 2019
Did you try the command
hold on;

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by