How can I solve this problem in the matlab program ?
Show older comments

3 Comments
Walter Roberson
on 21 Dec 2020
What problem? You show some text from some theory work; you do not show any question to be solved.
Vuqar Samedov
on 21 Dec 2020
Timo Dietz
on 21 Dec 2020
Some parenthesis are missing and u seems to be wrongly defined. Nevertheless, Matlab seems to calculate intemediate steps which prevents the final elimination of values on symbolic side.
Accepted Answer
More Answers (1)
syms x a b u
Pi = sym(pi)
f = 1/(b*sqrt(2*Pi))*exp(-1/(2*b^2)*(x-a)^2)
U = (x-a)/(b*sqrt(2));
DU = diff(U,x);
B = solve(u == U, b)
fs = subs(f/DU, b, B)
int(fs,-inf,inf)
Categories
Find more on Logical 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!

