フィルターのクリア

distributionFitter: Lognormal distribution

1 回表示 (過去 30 日間)
Mohamed Zied
Mohamed Zied 2023 年 2 月 9 日
コメント済み: Mohamed Zied 2023 年 2 月 13 日
Hi
I wanted to fit my Data to the lognormal distribution, but I get this error message : "The data in X must be positive".
I am pretty sure that the data and the frequency arrays are positive (>=0).
How can I ovecome this issue.
  5 件のコメント
Mohamed Zied
Mohamed Zied 2023 年 2 月 13 日
Yes, I found some zeros.
I have to remove these values to be able to fitt my data to the Lognormal distribution.
Thank you for your help
Mohamed Zied
Mohamed Zied 2023 年 2 月 13 日
I predefined the bin edges. for some bins the count is 0. Thus, the error.

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2023 年 2 月 9 日
I am pretty sure that the data and the frequency arrays are positive (>=0).
0 is not positive. What does this command show?
any(Data(1, :) == 0)
  1 件のコメント
Mohamed Zied
Mohamed Zied 2023 年 2 月 13 日
You are right. There are some zeros in my Data. I have to remove these values to be able to fitt my data to the Lognormal distribution.
Thank you for your help

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by