필터 지우기
필터 지우기

Rayleigh distribution to the scatter plot

조회 수: 2 (최근 30일)
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020년 11월 10일
댓글: Fatemeh Shomal Zadeh 2020년 11월 14일
Hi,
I did plot the scatter plot and want to fit the rayleigh distribution to it. Should I use the fitdist function? If yes , could you please let me know how as it has the x and y values.
scatter(x1{i,j}(idx1{i,j}==1),x2{i,j}(idx1{i,j}==1),'r.');
Thanks so much
  댓글 수: 1
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020년 11월 10일
and when I am coding this way pd = fitdist(x1{i,j}(idx1{i,j}==1),'Rayleigh', 'By',x2{i,j}(idx1{i,j}==1)), I am receiving the error of X must be a numeric column vector. How can I solve it?

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

채택된 답변

Raunak Gupta
Raunak Gupta 2020년 11월 14일
Hi,
I assume the scatter plot is close to Rayleigh distribution and the x axis represent a free variable according to which the corresponding y value represent an output following Rayleigh probability distribution function. In that case the task looks like Curve fitting rather than distribution fitting (for which fitdist is used). You can see the difference as explained in this documentation. In this documentation Weibull distribution is explained and Rayleigh is a special case of Weibull distribution as explained here. So, you can change the equations accordingly for fitting the Rayleigh distribution curve to the data.
  댓글 수: 1
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020년 11월 14일
Hi,
Thanks a lot for your help and respond.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by