I have a set of data x and y. The curve of the data looks linear passing in the origin, but its actully not linear. I want to fit the best curve into thse data with equation y=m*x only, because m is what i am interested in.
I have tried to use "polyfit" and "polyval" function implemented in matlab, but it gives me a line of y=mx +b, where m is approximatly 2.8e9 and b is 3.9. Is there a way where i can estimate m and have only a curve with y = mx?