This is my code:
figure;
hold on;
fplot(y,[xmin xmax]);
ylim([ymin ymax]);
title('function');
xlabel('x');
ylabel('f(x)');
hold off;
The error message is:
Index exceeds array bounds.
Error in lagrangianinterpolation2 (line 113)
title('function');