How to find equation of curve if just graph is given

3 ビュー (過去 30 日間)
Pranav
Pranav 2012 年 7 月 27 日
Hello All,
I have just graph with me in matlab and from that I have to find equation of curve. Can anybody help me to find that ?

回答 (1 件)

Conrad
Conrad 2012 年 7 月 27 日
You will have to make some assumptions about the functional form of the curve... for example if you know the curve is of the form y = b1 + b2*x + b3*x^2 + ...., you can solve for b by b = ((X'X)^-1)*X'*Y where X = [1 x x^2 ...].
Conrad
  5 件のコメント
John D'Errico
John D'Errico 2012 年 7 月 27 日
編集済み: John D'Errico 2012 年 7 月 27 日
NO, NO, NO!!!!!!!! Don't teach people to use the normal equations, i.e., b = ((X'X)^-1)*X'*Y. Terrible numerically. Just silly when a better solution exists. You are squaring the condition number of the problem, so this is bad when the system is at all ill-conditioned. Then you are using inv on a problem where it is less than desirable.
b = X\Y;
Don't continue to propagate the bad things you learned.
Conrad
Conrad 2012 年 7 月 27 日
John, rather than just criticising I would prefer, as I am sure Pranav would as well, that you present your better solution.

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

カテゴリ

Help Center および File ExchangePartial Differential Equation Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by