フィルターのクリア

How to find the Linear Regression?

1 回表示 (過去 30 日間)
R7 DR
R7 DR 2015 年 8 月 3 日
編集済み: R7 DR 2015 年 8 月 3 日
Hi
I fitted the data using the fminsearch. I am able to find the slope and intercept of the fitted equation but, how to find the Linear Regression (R2) value of the fitted equation?
code:
for i=1:3
y=[Y1{i,1}']
x=[X{i,1}']
A= fminsearch(@(par_fit) funccoats(par_fit,x,y),rand(1,2));
B(i,1)=A(:,1)
C(i,1)=A(:,2)
end
graph:

回答 (0 件)

カテゴリ

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