フィルターのクリア

Simulating empirical formulae with negative powers and 5 different variables

1 回表示 (過去 30 日間)
Hello I want to simulate the below formulae in matlab with different vaalues of λ,T,S and P is it possible
Please let me know if it is possible to code and genrate differernt values of n with different values of λ,T,S and P open for any kind of suggetions or links that can be helpful
n=f( λ,T,S, P)
Thank You

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 30 日
Yes, you can write this in MATLAB. You will need to change λ to valid variable name
% random values
Lambda = 1;
T = 2;
S = 0.2;
P = 3;
n = 1.3247+3.3*10^3*Lambda^(-2)-3.2*10^7*Lambda^(-4)-2.5*10^(-6)*T^2+(5-2*10^(-2)*T)*(4* 10^(-5)*S)+(1.45* 10^(-5)*P)*(1.021-6* 10^(-4)*S)*(1-4.5* 10^(-3)*T)
  1 件のコメント
Subhash Chandra Ranga
Subhash Chandra Ranga 2020 年 11 月 30 日
編集済み: Subhash Chandra Ranga 2020 年 11 月 30 日
Thank you so much for the reply I forgot to mention that the values I want to give them dyanamically and if I store the equation in variables of Lambda since it is not a perfect equation can I plot it ? Like some 3D view or something like that ?

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by