How to convert this equation to matlab code ?

Dear all,
I need you help to convert this equation to matlab code pls ?
Thank you so much

3 件のコメント

William Rose
William Rose 2022 年 9 月 7 日
What have you tried so far?
How do you plan to deal with the fact that there are two different equations, depending on the value of sigma?
I am asking because you can learn more by making a strong attempt on your own, before geettinghelp from others.
Thereare many variables in this equation. I suggest you make a list of all of them, and of a typical value for each.
Evaluate the equation with Excel or some other tool, to check your work.
Good luck, and please reply with your attempts so far.
Stephen23
Stephen23 2022 年 9 月 8 日
編集済み: Stephen23 2022 年 9 月 8 日
Rena Berman
Rena Berman 2022 年 11 月 1 日
(Answers Dev) Restored edit

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

 採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 7 日

1 投票

syms epsilon_t0_2 E_0 n sigma sigma_0_2 sigma_1_0 n_prime_0_2_1_0
E_0_2 = (sigma_0_2 * E_0)/(sigma_0_2 + 0.002*log(E_0))
E_0_2 = 
part1 = sigma/E_0 + 0.002 * (sigma/sigma_0_2)^n
part1 = 
part2 = (sigma-sigma_0_2)/E_0_2 + (0.008 - (sigma_1_0 - sigma_0_2)/E_0_2) * ((sigma - sigma_0_2)/(sigma_1_0 - sigma_0_2))^n_prime_0_2_1_0 + epsilon_t0_2
part2 = 
eta = piecewise(sigma <= sigma_0_2, part1, part2)
eta = 

2 件のコメント

Amir
Amir 2022 年 9 月 7 日
Thank u so much mister Robert. I'll check it on matlab
William Rose
William Rose 2022 年 9 月 8 日
Impressive answer.

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

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

2022 年 9 月 7 日

コメント済み:

2022 年 11 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by