Try this:
Ctg =[0.322; 0.122; 0.084; 0.053; 0.031; 0.01];
t =[0; 20; 40; 60; 80; 100];
plot(t, Ctg, 'ko', 'LineWidth', 2, 'MarkerSize', 15);
hold on;
coefficients = polyfit(t, Ctg, 4)
t = linspace(min(t), max(t), 1000);
R = coefficients(1)*t.^4 + coefficients(2)*t.^3 + coefficients(3)*t.^2 + coefficients(4)*t+ coefficients(5);
plot(t, R, 'b-', 'LineWidth', 2);
grid on;
Best Answer