Borrar filtros
Borrar filtros

Variable width histogram and curve on the same graph?

2 visualizaciones (últimos 30 días)
Anas Rao
Anas Rao el 14 de En. de 2017
Comentada: Anas Rao el 17 de En. de 2017
I want to make a hostogram of 6-7 data and each have different width. Further, as I have converted the curve into histogram. So, I want to make such that curve, variable width histogram on the same graph. Kindly tell me how I make it

Respuesta aceptada

Steven Lord
Steven Lord el 15 de En. de 2017
Call histogram with unequally-spaced edges.
x = 49*rand(1, 1e4);
histogram(x, (1:7).^2)
To plot a histogram and another curve on the same axes, look at the hold function.
  1 comentario
Anas Rao
Anas Rao el 17 de En. de 2017
Thankyou. Can you please explain me this by more simple example. So, that I could understand it easily

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by