MATLAB: How can i generate a function using this points

function

If i got x=[1,3,8,25,45,23]; and y=[25,24,13,69,25,75];

Best Answer

x = [1,3,8,25,45,23];
y = [25,24,13,69,25,75];
p = polyfit(x, y, 5)