Page 1 of 1

using matlab code . Please answer. i will give good rate. define the function -x (x-1) ^2 * (x+2)^2. Evaluate f(1.3) plo

Posted: Tue Sep 07, 2021 7:51 am
by answerhappygod
using matlab code . Please answer. i will give good
rate.
define the function -x (x-1) ^2 * (x+2)^2. Evaluate
f(1.3)
plot f(x) = -x (x-1) ^2 * (x+2)^2 where -2<x<2 . you may
use the x vector you have created previously.
In the same axes, plot both -x (x-1) ^2 *
(x+2)^2. and the line y=x from -2<x<2.
Use different color and a legend to distinguish
the two graphs.
Extract the entries of vector x with even indices and
put them in a new vector called xEve , and those with odd
indices in the vector called xOdd. from -2<x<2