Why does the QUAD function within MATLAB return an error when I specify an integrand as a string expression representing a constant value?
Show older comments
For example, if I try to integrate "f(t) = 3" using:
quad('3', 0, 1)
I receive the following error:
??? Attempted to access y(7); index out of bounds because numel(y)=1.
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!