Code Matlab for a function that depends in a real parameter

28 ビュー (過去 30 日間)
Djamel
Djamel 約17時間 前
編集済み: Torsten 約13時間 前
How to write a code Matlab fir the function F_alpha ?
  1 件のコメント
John D'Errico
John D'Errico 9分 前
Please stop asking the same question repeatedly. This is now the third time I have seen essentially this same question, and the second ime you have asked identically the same question.

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

回答 (2 件)

Steven Lord
Steven Lord 28分 前
Parameterize the function you pass into the integral function. See the "Parameterized Function" example on the integral documentation page for a concrete example.

Torsten
Torsten 約2時間 前
編集済み: Torsten 約1時間 前
integrand = @(f,y)y.*sin(f(y));
F_alpha = @(f,alpha,x)alpha.*x.*integral(@(y)integrand(f,y),0,1);
f = @(u)u.^2;
alpha = 1;
x = 2;
F_alpha(f,alpha,x)
ans = 0.4597

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by