Here is what I am working with right now:
if true
y = @(x) -2.*x.^4+3.*x+5;
x = -1:1;
fplot(y, [x(1),x(end)]);
grid on
end
Now I need to use trapz to figure out how to calculate the area under the curve, but I cannot figure it out. I tried Area = trapz(x,y), but that didn't work? How to a solve this problem?