probplot and hold on

조회 수: 8 (최근 30일)
Bum
Bum 2013년 1월 4일
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.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 4일
x1 = wblrnd(3,3,100,1);
x2 = raylrnd(3,100,1);
x3 = raylrnd(3,100,1);
probplot('weibull',[x1 x2 x3])
  댓글 수: 4
Tom Lane
Tom Lane 2013년 1월 4일
편집: Tom Lane 2013년 1월 4일
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 2013년 1월 4일
편집: Azzi Abdelmalek 2013년 1월 4일
Exact, you can also set different color
h=probplot(gca,x2);
set(h,'color','g')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by