How to draw the below type of graph in MATLAB

1 visualización (últimos 30 días)
Harish Pulluri
Harish Pulluri el 16 de Mzo. de 2016
Comentada: dpb el 16 de Mzo. de 2016

Respuesta aceptada

Stalin Samuel
Stalin Samuel el 16 de Mzo. de 2016
  2 comentarios
Harish Pulluri
Harish Pulluri el 16 de Mzo. de 2016
The above links are giving information about only left side y axis only, not giving both sides

Iniciar sesión para comentar.

Más respuestas (1)

dpb
dpb el 16 de Mzo. de 2016
Simplest approximation is
doc histfit % use optional specified distribution option for Weibull
add the annotation with text
The specific form would be doable with plotyy with @hist and @plot with the vector of observations and the computed pdf values, respectively.
  2 comentarios
Harish Pulluri
Harish Pulluri el 16 de Mzo. de 2016
Can you send me the complete command of plotyy because I am using the same command like this plotyy(v,fv,v,samples,'@plot','@hist') but it is showing error
dpb
dpb el 16 de Mzo. de 2016
Actually that was a bum steer, sorry -- the form of input for hist doesn't meet the criterion for use with plotyy; namely that the function must have form func(X,Y)
As the other respondent noted, use the examples for two axes as an example and "salt to suit". The basics are to create to axes wherein the second is the same 'position' as the first but with the y axes at the right instead of left as is default. The samples are pretty straightforward; give it a go and show us your efforts if you get stuck...

Iniciar sesión para comentar.

Categorías

Más información sobre Two y-axis 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