Solve equation that includes integral with variable upper limit.

quadgk((1./(1000.*sqrt(2.*pi))).*(y-x-100).*exp(-((x-150).^2)./200),y-200,y-100)+quadgk((1./(10.*sqrt(2.*pi))).*(exp(-((x-150).^2)./200)),-inf,y-200)=0.53
How to solve the above equation? I want know the value of y.
I can not use fzero function. Please help me. Thanks!

3 件のコメント

Walter Roberson
Walter Roberson 2017 年 1 月 25 日
Are there any other functions that you are not permitted to use besides fzero()?
Are you permitted to use the symbolic toolbox?
Your reference to quadgk suggests that you are using an older version of MATLAB. Which release are you using?
Daniel Bridges
Daniel Bridges 2017 年 1 月 26 日
GUO ZHONG
GUO ZHONG 2017 年 1 月 26 日
Thanks!

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 26 日

0 投票

FUN = @(Y)arrayfun(@(y)quadgk(@(x)(1./(1000.*sqrt(2.*pi))).*(y-x-100).*exp(-((x-150).^2)./200),y-200,y-100)+quadgk(@(x)(1./(10.*sqrt(2.*pi))).*(exp(-((x-150).^2)./200)),-inf,y-200),Y)
Now find the zeros of FUN - 0.53
Be careful, though: there gets to be a lot of numeric error beyond about 750.

3 件のコメント

GUO ZHONG
GUO ZHONG 2017 年 1 月 26 日
Thanks! I got the result.^_^
Weijian Yan
Weijian Yan 2018 年 5 月 31 日
How did you get the result? Can you show us some detail steps?Thank you!
Walter Roberson
Walter Roberson 2018 年 6 月 3 日
Weijian Yan, are you not permitted to use fzero() either, the way the original poster was not permitted for unknown reasons?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by