To fit the angular distribution with a given equation.

1 回表示 (過去 30 日間)
aneps
aneps 2013 年 12 月 1 日
編集済み: Matt J 2013 年 12 月 1 日
I have a data (A) with two columns Rho and Theta (in polar coordinates).
If I plot the histogram of Theta, I get Y(Theta).
I want to fit Y(Theta) into equation Y(Theta)=(sigma/4pi)[1 + b/2(3*cos^2(Theta)-1)] to fit for the best "sigma" and "b" parameters.
Can anyone give me the program or help me to make this program?

回答 (1 件)

Matt J
Matt J 2013 年 12 月 1 日
編集済み: Matt J 2013 年 12 月 1 日
It's a linear equation in sigma and b*sigma. Just use mldivide().

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by