Having problems with integral with variable Bounds
3 views (last 30 days)
Show older comments
Samuel Montgomery
on 23 Oct 2015
Answered: Walter Roberson
on 24 Oct 2015
So Im want to have a integral with the upper and lower limits be Variable such as " 't' to 't-4' " and spit out symbolic answer in terms of 't'
syms z;
syms t;
f=@(z) 6-2.*z;
Upper=@(t) t;
Lower=@(t) t-4;
integral(f,Upper,Lower)
Error using integral (line 85)
A and B must be floating-point scalars.
0 Comments
Accepted Answer
Walter Roberson
on 24 Oct 2015
syms z t
f = 6-2.*z;
Upper = t;
Lower = t-4;
int(f, z, Lower, Upper)
0 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!