Problem:
Write a script to use a polynomial to create data and then practice fitting.
Additional information:
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve polynomials and to perform certain operations.
Answer is in MATLAB format