Using the \ operator to fit a parabolic curve to a data set.
32 views (last 30 days)
Petch Anuwutthinawin on 20 Jul 2021
%for a certain file, the first column is the independent variable and
%second is the dependent variable.
x=[h ones(length(h),1)] %I use a column of ones in order to simulate a constant secondary dependent variable.
y=C([2:13],2); % the dependent variable
V=x\y %This command only gives me one value, that is just a linear fit. How do I make this use a parabolic fit instead?