Consider the function f defined by the formula
f(x) = (3x⁴-2x²+4) sin²(πx/4)

Write a MATLAB script in the space provided that produces a plot of the function f sampled at 201 points uniformly spaced over the interval [0,2]. Your script should use a MATLAB anonymous func- tion to evaluate f and f should be vectorised to allow arrays as input.



Answer :

Other Questions