Effacer les filtres
Effacer les filtres

probplot and hold on

2 vues (au cours des 30 derniers jours)
Bum
Bum le 4 Jan 2013
How can I plot more than two "probplot" in one graph? I used "hold on" but it doesn't work. It only shows the last graph. And also please help me about using probplot in for loop, to draw in one graph.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 4 Jan 2013
x1 = wblrnd(3,3,100,1);
x2 = raylrnd(3,100,1);
x3 = raylrnd(3,100,1);
probplot('weibull',[x1 x2 x3])
  4 commentaires
Tom Lane
Tom Lane le 4 Jan 2013
Modifié(e) : Tom Lane le 4 Jan 2013
It is also possible to do
h = probplot(gca,x2)
to add x2 to an existing probability plot. This has the advantage that the x vectors don't need to have the same length. The disadvantage is that you'll want to change the color using h, to be different from the color of the stuff already on the plot.
Azzi Abdelmalek
Azzi Abdelmalek le 4 Jan 2013
Modifié(e) : Azzi Abdelmalek le 4 Jan 2013
Exact, you can also set different color
h=probplot(gca,x2);
set(h,'color','g')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by