필터 지우기
필터 지우기

Nakagami Dist

조회 수: 2 (최근 30일)
DAD
DAD 2011년 9월 26일
While using Nakagami distibution ,I used to got the error as
Error using ==> histfit at 69 All X values must be in the interval (0,Inf).
Error in ==> Nakaemi at 11 histfit(I,10,'nakagami')
Please help me..........................

채택된 답변

UJJWAL
UJJWAL 2011년 9월 26일
Hi,
This error occours when the data vector you give, contains negetive values. Remove the negetive values and the error will be no more. For example
a = randn([1,10]); % It may give you negetive values
so histfit(a,10,'nakagami');
will give u error.
However a =randi(20,[1,30]); % It will give you only positive values
so histfit(a,10,'nakagami'); will not give u any error
Hope this helps.
Happy to help
UJJWAL

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by