Hello!!
I need some help with my numerical methods homework. Can You help me?

Problem:

Write a Matlab function interpolating sin(x) in [-1,1] with equidistant and Chebyshev nodes.
Order of interpolating polynomial must be the function input parameter. The function must generate plots of interpolation error and of the factor