MATLAB: Shade the area under a anonymous function areafunction Im trying to visualize the area between my anonymous function and the x-axle but can't find a way of doing so. Does someone have a method for this? Best Answer f=@(x) sin(1-x.^3)x=0:0.001:2*pi;area(x,f(x)) Related SolutionsMATLAB: How to normalize curves such that area under curve=1 divide all numbers by the area that you calculate using Trapz.x=0:0.1:pi;y=sin(x);Area=trapz(x,y)Area = 1.9975y_normalized=y./Area;trapz(x, y_normalized)ans = 1.0000 MATLAB: Calculating a function and drawing a graph syms xf=sin(x)/(x^2+1);fplot(f) derivative=diff(f,x)derivative_when_x_equals_one=double(subs(derivative,x,1)) Related QuestionShade area under curve between two x valuesHow to solve this problem ? ‘Area between curves’Shade area under curve between 2 x-axis limitsFinding area UNDER two curvesDrawing a function graph
Best Answer