See if this does what you want:
f = @(y) pi*(y.*10^2 - y.*5^2); % Create Anonymous Function, Add ‘y’
F = integral(f,-3.53553390,3.535533906); % Integrate
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!