Hi,
I am using MATLAB to fit a curve to data. I have a physics formula of the form y=ax^2 and I am trying to determine the value of the constant _a_ using the data. When I fit a second degree polynomial to the data (using polyfit), MATLAB gives me the constants a b and c of the polynomial in the form of ax^2 + bx + c. Of course, that doesn't help me find a for my formula. The extra terms of power<2 throw me off. I need a polynomial of the form ax^2 + 0x + 0 that fits the data. How can I accomplish this?
Tags: