MATLAB: Least square method

least squares

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…

Best Answer

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