Here is what I am working with right now:
y = @(x) -2.*x.^4+3.*x+5;
x = -1:1;
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?