Solve function with integration of function of variable
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 2 Jul. 2015
Maybe so?
out = fzero(@(x)integral(@(y)exp(-y),0,x)-.5,.5);
1 Kommentar
modem sudhakar
am 2 Jul. 2015
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!