Can someone help me with developing a simple MATLAB code that inputs the n datasets $ \lbrace x_i : i=0,...,n \rbrace$ and $ \lbrace f^i : i=0,...,n \rbrace$ and produces the coefficients $ \lbrace c_i : i=0,...,n \rbrace$ of the Lagrange Polynomials?
I have an understanding of how to achieve the polynomial itself, but extracting each coefficients I am new to. Any help would be great :)
Thanks :)