histfit help about fitting equation parameters

Recently, I used histfit to analyze my data, but I failed to obtain the fitting equation parameters. For example,histfit(t2,30,'exponential'), through this, a histogram and fitting curve will be obtained. The fitting curve should be y=a*exp(b*x), what is the value of a and b? Does anyone know the code to get the values of 'a' and 'b'?

1 件のコメント

Star Strider
Star Strider 2017 年 2 月 10 日
The histfit function fits a distribution to data, not data to a function. You have to use the Statistics and Machine Learning Toolbox nlinfit function (or similar techniques) to fit your function to data.
What do you want to do? Examples and data will help.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

質問済み:

2017 年 2 月 10 日

コメント済み:

2017 年 2 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by