Question: MATLAB please!! 2. The MATLAB function poly inputs an array of numbers and outputs a polynomial (as a coefficient vector) whose roots are the input
MATLAB please!!


2. The MATLAB function poly inputs an array of numbers and outputs a polynomial (as a coefficient vector) whose roots are the input numbers. In other words, poly inputs i..., In and outputs ao, ai,., an where 1:0 i-1 Figure out an algorithm for this transformation, and write it in MATLAB as the function function p mypoly(X) You may not call poly within mypoly, and you may not use the Symbolic Math Toolbox (syms, etc.). 1. The Lagrange interpolation formula, evaluates y p), where z is given and p is the (unique) degree-n polynomial that interpolates n+1 given coor- dinate pairs, (ro yo). (rii). , (Tnyn). ("Interpolates" means intersects, i.e., y p) for i 0,1,.. ,n.) (a) Implement this as a Matlab function with the signature function y - linterp(X, Y, x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
