Question: Solve for px In this problem you wil implement Matiab code to eviluate a polynomial given irs coefficients. p(x)=((cez+ck)z++c1)z+0,z=xa. Then use a for loos ta
Solve for px

In this problem you wil implement Matiab code to eviluate a polynomial given irs coefficients. p(x)=((cez+ck)z++c1)z+0,z=xa. Then use a "for" loos ta corpute p(x). Note that in Mallab, the first index is 1 , not zero. Therefore, you have to inczease al inciices by one. That means, p(x)=((cE+12+cA)z++c2)z+c1 Function 8 Code to call your function (b) Is the polynomial correctly computed Variable y has an incorrect value. Think about the nested calculation. Afer each heration, you update px using pox =px7z+ ( (what ls the ... ?). Note that px and z are vectors, so you have to use the elementwise multiplica:ion, try pxzz and wil see it does not work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
