MATLAB: What is the interpretation of trapz(x,cumtrapz(x,y))

integrationMATLAB

x = (-12:12);
y = zeros(1,numel(x));
y(12:14) = 0.33;
z = trapz(x,cumtrapz(x,y));
edit: Alternatively what does the integral of a cumulative integral mean?

Best Answer

It would effectively be a double integration over the same domain