In article <a488ubsdofj7@legacy>,
email@example.com (Eid) writes:
> I have a problem that is puzzling me for very long.I got this
>problem of fitting in 80 over text files and within each txt file,it
> contains about 120 datas.I want to from these datas generate a best
>fit line to cut through all these points.The program I am now using is
>Matlab.Please help and reply asap,as I need the info urgently.
read the files using fscan into intermediate xx,yy (row)vectors.
initialize the final x and y vector with ;
then for every file do
n=length (x); %total number of points
the line then is