clc;
fprintf('Ajuste de Curva por Mínimos Quadrados \n \n');

x_tab = [0.3 2.7 4.5 5.9 7.8]
y_tab = [1.8 1.9 3.1 3.9 3.3]

n = length(tab);
p = 2;

sum_x = sum(x_tab)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: