How to write a matlab code for this equation?

1 回表示 (過去 30 日間)
Amreen Haider
Amreen Haider 2023 年 1 月 5 日
編集済み: Walter Roberson 2023 年 1 月 9 日

回答 (1 件)

Luca Ferro
Luca Ferro 2023 年 1 月 6 日
編集済み: Luca Ferro 2023 年 1 月 6 日
Fi= @(I) ((2*(alpha*beta)^((alpha+beta)/2))/T(alpha)*T(beta))*(I^(alpha+beta))*K*2*sqrt(alpha*beta*I);
if you want to show alpha and beta as symbols in the workspace you can go for something like (see here):
alpha=evalin(symengine,'`α`');
Since you didn't specify anything i interpreted T as a function. You will need to define it as well.
  4 件のコメント
Luca Ferro
Luca Ferro 2023 年 1 月 9 日
yeah you are definetly right about K, it is indeed a function for sure, i just didn't notice. This should be correct now:
Fi= @(I) ((2*(alpha*beta)^((alpha+beta)/2))/T(alpha)*T(beta))*(I^(alpha+beta))*K(2*sqrt(alpha*beta*I));
Walter Roberson
Walter Roberson 2023 年 1 月 9 日
編集済み: Walter Roberson 2023 年 1 月 9 日
https://en.m.wikipedia.org/wiki/K-function ? Or is it https://www.mathworks.com/help/matlab/ref/besselk.html ?

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by