Plotting a function containing a single integral with two variables

URGENT HELP, PLEASE! Could you please help me to plot the function in the figure attached ? It contains two variables in the integral but one of them (y) is held constant but still I want to plot the final function f(a,y) with respect to a (the upper limit of the integral) and y!

回答 (2 件)

Torsten
Torsten 2022 年 4 月 17 日

0 投票

Use the integral expression obtained here
for the x-integral, insert the limits and solve the resulting equation in y using "fzero" or "fsolve".

2 件のコメント

Abdallah Qaswal
Abdallah Qaswal 2022 年 4 月 17 日
My code gives me empty plot and warning!
Abdallah Qaswal
Abdallah Qaswal 2022 年 4 月 17 日

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

Abdallah Qaswal
Abdallah Qaswal 2022 年 4 月 17 日

0 投票

Hi, Thank you for response! Please, see my code and guess where is the problem!

3 件のコメント

Torsten
Torsten 2022 年 4 月 17 日
You won't have any chance to solve this problem with an exponent of -165 for exp.
Abdallah Qaswal
Abdallah Qaswal 2022 年 4 月 17 日
Actually, I have solved the problem with this exponent but the case was that y is defined by certain value e.g.: 0.07. However, in this case it is variable! My problem is within the integral itself since there are two variables!
Torsten
Torsten 2022 年 4 月 17 日
編集済み: Torsten 2022 年 4 月 17 日
I gave you the antiderivative of f with respect to x in the link. You only have to give the appropriate values to a, b and c.
But with this exponent, you won't have a chance to reasonably evaluate fun1 although you will be able to write down q as a function of a and y explicitly .

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

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

質問済み:

2022 年 4 月 17 日

編集済み:

2022 年 4 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by