least square method

Hello....
what is the mfile coding for least square method to compare the two data is fit or not, or to know the percentage fit between two data? the data is in microsoft excel.
Hope you can help me... thanks...

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2012년 5월 21일

0 개 추천

Hi Tiara,
"fit" may be next to everything. If it is a linear fit, just use polyfit, same of course for polynomial fit. Everything else you will need to give us some more information ...
Titus

댓글 수: 2

tiara
tiara 2012년 5월 21일
thanks for your responds...
I have two data that will need to compare between these two data.
It just in array data... not in polynomial..
How can I compare these two data by writing coding in mfile?
What is the coding?
Sargondjani
Sargondjani 2012년 5월 21일
you have to tell us how you want to compare them... i mean, it could be every thing: difference in mean, variance, linear regression coefficients, average squared differences...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by