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.

 채택된 답변

Torsten
Torsten 2015년 7월 2일
Or so :
syms x T
T0=solve(int(exp(-x),x,0,T)-0.5==0,T);
?
Best wishes
Torsten.

추가 답변 (1개)

Andrei Bobrov
Andrei Bobrov 2015년 7월 2일
Maybe so?
out = fzero(@(x)integral(@(y)exp(-y),0,x)-.5,.5);

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

2015년 7월 2일

댓글:

2015년 7월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by