I use :
F=[200000;250000;270000]; G=[8000;12000;13000]; figureplot(F, G, 'go')hold on;coeffsss = polyfit(F, G, 1); fittedXxx = linspace(min(F), max(F), 200);fittedYyy = polyval(coeffsss, fittedXxx);plot(fittedXxx, fittedYyy, 'r-', 'LineWidth', 1);
but the line was not completed
I want the line to start from the the beginning/above of the first point.
how I can do this?
Best Answer