how to estimate/evaluate the integral of a constant value function?
13 views (last 30 days)
Show older comments
Jinquan Li
on 23 Feb 2021
Commented: Jinquan Li
on 23 Feb 2021
For example, f = 5, for 0<t<1, zero otherwise.
i tried the following code but it didn't work:
syms t
f = 10;
int(f)
0 Comments
Accepted Answer
Walter Roberson
on 23 Feb 2021
Edited: Walter Roberson
on 23 Feb 2021
syms t a b real
f = piecewise(0 < t & t < 1, 5, 0)
int(f, t, a, b)
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!