Solve function with integration of function of variable

hi,
I want to use solve function on integration of varible, but it is giving error like:
"A and B must be floating point scalars".
The operation is like :
syms Y; solve(integral(@(x) exp(-x),0,T)==0.5);
Can you give suggestion to solve this (or) suggest me an alternative way. Thank you.

 Accepted Answer

Or so :
syms x T
T0=solve(int(exp(-x),x,0,T)-0.5==0,T);
?
Best wishes
Torsten.

More Answers (1)

Categories

Find more on Mathematics 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!