First of all i am new to Matlab, and not sure whether to use polyfit or something else for my problem.
I plotted a graph with the following matlab code:
$g=g.*u+x(i)$ end $plot(u,g,'-',t,y,'o')$
Now my question is: plot the figure with polynomial fit of polynomial degree 2.
How should i do this?