Use of 'ArrayValued' in Matlab numerical integration
Show older comments
Why in Matlab numerical integration
f = @(x) 5;
integral(f,0,2,'ArrayValued',true)
needs 'ArrayValued',true ... while
f = @(x) x;
integral(f,0,2)
don't need it?
Accepted Answer
More Answers (1)
f = @(x) 5*ones(size(x));
integral(f,0,2)
Categories
Find more on Univariate Discrete Distributions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!